Read from an open file in PHP
Description
The following code shows how to read from an open file.
Example
/* ww w . j a v a2 s. co m*/
<?php
$file = fopen("test.txt","r");
fread($file,"10");
fclose($file);
?>
The following code shows how to read from an open file.
/* ww w . j a v a2 s. co m*/
<?php
$file = fopen("test.txt","r");
fread($file,"10");
fclose($file);
?>