I am trying to stream/pipe a file to the user\'s browser through HTTP from FTP. That is, I am trying to print the contents of a file on an FTP server.
This is what
Try:
@readfile('ftp://username:password@host/path/file');
I find with a lot of file operations it's worthwhile letting the underlying OS functionality take care of it for you.