#1
  1. No Profile Picture
    PHP Geek
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    37
    Rep Power
    13

    ftp_fput() resets every 5 minutes


    Hi,

    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.
  2. #2
  3. No Profile Picture
    PHP Geek
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    37
    Rep Power
    13
    ...
  4. #3
  5. No Profile Picture
    PHP Geek
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    37
    Rep Power
    13
    Thanks for the help everyone!
  6. #4
  7. No Profile Picture
    PHP Geek
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    37
    Rep Power
    13
    Any time you feel like responding, go ahead.

IMN logo majestic logo threadwatch logo seochat tools logo