Page 1 of 1

Question about fpassthru function.

Posted: Fri Aug 24, 2007 12:25 pm
by JellyFish
I'm not really sure reading the php.net docs about this function that if this function "echoes", so to speak, and entire file? Does it, is that what it does?

Posted: Fri Aug 24, 2007 4:08 pm
by feyd
It does pretty much the same thing as readfile() except you have to open the file yourself, potentially seeking to the location you wish to start the output from.

Posted: Fri Aug 24, 2007 4:40 pm
by JellyFish
feyd wrote:It does pretty much the same thing as readfile() except you have to open the file yourself, potentially seeking to the location you wish to start the output from.
Okay. Thanks. But is this the best to output an entire file using a file resource not a file URI?