1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Costa Rica
    Rep Power

    TimeOut error downloading from FTP x2

    Hello, is there an alternative way to set Time Out value.... without touching the php.ini file?

    My problem is

    1- The file downloads but I get a 30 seconds timeout error... I know i can solve this changing the php.ini file value to up to 180 seconds... but if the file is bigger?

    2- I have diffrent output texts for the FTP connection provess like: errors, conected, etc... but they never show up, only when the connection is closed.

    Can I make something like sleep or something to solve this too?

    Thank you.
  2. #2
  3. Wiser? Not exactly.
    Devshed God 2nd Plane (6000 - 6499 posts)

    Join Date
    May 2001
    Bonita Springs, FL
    Rep Power
    use set_time_limit(). You can either up it to a larger timeout, or you can use 0 for a value which will make it never timeout.

IMN logo majestic logo threadwatch logo seochat tools logo