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

    Join Date
    Nov 2001
    Location
    Costa Rica
    Posts
    87
    Rep Power
    13

    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 1st Plane (5500 - 5999 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    5,953
    Rep Power
    4033
    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