HI,
I am trying to write a script which has to download a file from remote ftp and send it to the user
right now it has two wariants - one - downloading entire file to the server and then flushing it back to user - that's not a good way, because if the file is bigger, the user waits in front of white screen trying to figure out what is happening. so it de-facto works only with smaller files.
second way is to FOPEN () the file and flushing it out right as it comes from the ftp-site. this one has two main disadvantages - id does not work on solaris(dunno why, i think i had it in one while, but then i messed up entire file 🙁 ) for which it's mainly intended to work with
second - users can't specify the bin/ascii method, so the get messy files.
does anyone know how to download the files using the ftp functions ?
i think that ftp_fget may do the stuff, but i was unable to figure out how 🙁
thanks a lot
Michael