note 3212 modified in function.fread by aidan
| From: | aidan@php.net | Date: | Thu, 01 Jul 2004 08:48:07 +0000 |
| Subject: | note 3212 modified in function.fread by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72246@lists.php.net to get a copy of this message | ||
For reading from a specified point in the file, use:
<?php
$fp=fopen("$filename","r");
fseek($fp,$numpoint);
$content=fread($fp,filesize("$filename"));
fclose($fp);
?>
For doing the same with an url-based file, use jeichorn@mail.com's solution and substr it.
--was--
For reading from a specified point in the file, use:
$fp=fopen("$filename","r");
fseek($fp,$numpoint);
$content=fread($fp,filesize("$filename"));
fclose($fp);
For doing the same with an url-based file, use jeichorn@mail.com's solution and substr it.
http://php.net/manual/en/function.fread.php