Question about fpassthru function.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Question about fpassthru function.

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post 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?
Post Reply