in reply to net::ftp question

I don't understand. Are you saying that when you retrieve the file from the *ftp server* to the *web server*, the file has zero bytes? How do you know? How do you know the size of the file on the *ftp server*? Or are you trying to display the contents of the retrieved file and not seeing it? (but that would be because you're not printing/sending the file back to the *web client*).

You could always produce more debug info.

-derby

Replies are listed 'Best First'.
Re^2: net::ftp question
by Anonymous Monk on Dec 18, 2006 at 16:25 UTC
    I have files on two different servers. The script is situated on original server, the file I am receiving on 'site.com'. I can view the situation on both servers using an ftp client. I start with no file on original server then run the script. I then take a look on the original server and find the file has been created, but that it is empty. If thre's a step that I am missing (I used the Cookbook as a basis for this) I'd be grateful for the help.

      There's nothing really wrong with your script that I can see. Are you sure the file does not have a zero byte size on site.com?

      -derby
        The file I'm trying to transfer is definitely not empty. But there is something more peculiar - I changed the filename to pick up another file in that directory as a check - and it transferred it without a problem!!

        As I mentioned I definitely am getting the correct file from the server because if I change the name it causes an error. Why it will pick up one file but not another is something very strange...