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:
Example:
Example:
<html>
<body>
<?php
$file=fopen("welcome.txt","r");
?>
</body>
</html>
Post a Comment