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);
?>
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);
?>