read from file in php
the fread() reads from an open file.The function will stop at the end of the file or when it reaches the specified length.whichever comes first.this function the read string or false on failure
syntax
frad(file,length)
Example
Output
the fread() reads from an open file.The function will stop at the end of the file or when it reaches the specified length.whichever comes first.this function the read string or false on failure
syntax
frad(file,length)
Example
<html> <body> <?php $f=fopen('today.txt','r'); // today.txt must in read.php location $fh=fread($f,"6"); echo $fh; fclose($f); ?> </body> </html> |
Output
0 comments:
Post a Comment