November 5th, 2002, 12:13 PM
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?
November 5th, 2002, 02:19 PM
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.