> Opening a File in php ~ Online tutorial

Opening a File in php


Opening a File in php

The fopen() function is used to open files in PHP.
Syntax:

fopen('file name','mode of operation')
  • The first parameter of this function contains the name of the file to be opened
  • the second parameter specifies in which mode the file should be opened:

  • <html>
    <body>
    <?php
    $file=fopen("welcome.txt","r");
    ?>
    </body>
    </html> 





Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: