Re: fpassthru (was: fgets)

From: Date: Thu, 30 Aug 2001 17:27:50 +0000
Subject: Re: fpassthru (was: fgets)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65341@lists.php.net to get a copy of this message
On Thu, 30 Aug 2001, Joseph Bannon wrote: > What exactly does fpassthru do? Does it download it to my server and then > shoot it to the browser?? (http://php.net/fpassthru) For the file pointer on which it operates, it reads the file pointer until EOF and sends the data to STDOUT. It is very much like the 'cat' command in Unix. The file pointer can be to a local or remote file opened with fopen(), or a remote data source opened with fsockopen(). And as always, there's a gem in the docs ... readfile() does the same thing as fpassthru() but doesn't need a file pointer. It just needs a path to a file, so you can eliminate the fopen(). ~Chris /"\ \ / Pine Ribbon Campaign Microsoft Security Specialist X Against Outlook The moron in Oxymoron. / \ http://www.thebackrow.net

« previous php.general (#65341) next »