February 16th, 2003, 02:35 PM
ftp_fput() resets every 5 minutes
I'm using a PHP script to upload a file from one server to another. In doing so I use ftp_fput to transfer the file to the FTP server in binary mode. However, I'm having problems when I upload large files, which take a while to transfer. It seems that the file transfer works just fine until 5 minutes after it started. After 5 minutes it resets and the file upload starts again at 0. I'm not sure exactly what is going on, but when I refresh via CuteFTP I watch the size of the remote file increase and then it starts back at 0 again after 5 minutes.
What am I doing wrong? I tried using set_time_limit(1800); to increase the execution time to 30 minutes but it doesn't seem to have an effect.
February 18th, 2003, 11:35 PM
February 22nd, 2003, 05:26 PM
Thanks for the help everyone!
February 24th, 2003, 07:02 PM
Any time you feel like responding, go ahead.