> read file in php ~ Online tutorial

read file in php

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
<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


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: