Re: fread() a remote file

From: Date: Fri, 09 Feb 2001 15:03:00 +0000
Subject: Re: fread() a remote file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38957@lists.php.net to get a copy of this message
On Fri, Feb 09, 2001 at 09:02:04AM -0600, Tyler Longren wrote: > Could you perform fread() on a remote file? Yes I could, and so can you, so why not try it? An example: $handle = fopen("http://www.php.net/manual/en/function.fread.php", "r"); while($line = fread($handle, 255)) { echo "$line"; } fclose($handle); -- Jason Stechschulte jpstech@unoh.edu -- One of the reasons Perl is faster than certain other unnamed interpreted languages is that it binds variable names to a particular package (or scope) at compile time rather than at run time. -- Larry Wall in <199709050035.RAA29328@wall.org>

« previous php.general (#38957) next »