RE: [PHP] Re: Script timeout Problem
| From: | Jay Blanchard | Date: | Fri, 19 Dec 2003 12:39:08 +0000 |
| Subject: | RE: [PHP] Re: Script timeout Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173011@lists.php.net to get a copy of this message | ||
[snip]
i tried this but to noavail. anyother sugestion really this problem is
really annoying me now
[/snip]
If it is the script timing out place this at the beginning of the
script. (I do this with scripts that update and insert millions of
records)
set_time_limit(0);
See http://www.php.net/set_time_limit
You have three factors, the query time (which should be OK),
the PHP time limit (you can set this in php.ini with max_execution_time,
the web server time limit (in httpd.conf for Apache, I am not sure where
for IIS)