Pages

fseek function in php example

Monday, 25 March 2013

fseek function in php:

by using this function we can locate the file pointer on the specified location.

<?php
$fp= fopen("myfile.text",' w+');
fwrite ($fp, "hello scott");
fseek($fp,2);
$size= file size("myfile.text");
echo fread($fp,$size);
?>
 

Most Reading