jeichorn's solution?
Posted: Mon Oct 06, 2003 8:21 pm
I want to read a file from a specified position via http//. Is it possible?
I read a topic on http://php.net/fread and on the last comment it said:
Anyone who knows how that solution would look like? Or another way to do this?
I read a topic on http://php.net/fread and on the last comment it said:
But there is no jeichorn@mail.com's solution on the page what I can seeFor reading from a specified point in the file, use:
For doing the same with an url-based file, use jeichorn@mail.com's solution and substr it. "Code: Select all
$fp=fopen("$filename","r"); fseek($fp,$numpoint); $content=fread($fp,filesize("$filename")); fclose($fp);
Anyone who knows how that solution would look like? Or another way to do this?