note 3212 deleted from function.fread by felipe

From: Date: Sat, 29 Dec 2007 16:12:43 +0000
Subject: note 3212 deleted from function.fread by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134126@lists.php.net to get a copy of this message
Note Submitter: ethanh at pushgroup dot net ---- 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.

« previous php.notes (#134126) next »