Page 1 of 1

Apache Timeout

Posted: Thu May 02, 2002 7:59 pm
by chvol
Time-out error under Apache webserver

I downloaded PHPTriad to my Windows 98 PC at home and SNOOPY PHP class from http://www.hotscripts.com/PHP/Scripts_a ... b_Fetching. Using function fetchtext (that I must call repeatedly) in my PHP program I get a time-out error: Fatal error: Maximum execution time of 30 seconds exceeded in C:apachehtdocsSnoopy.class.inc on line 748. Exactly how do I fix this? Note the following lines from various files:

HTTPD Timeout 300
HTTPD KeepAliveTimeout 60
SNOOPY.CLASS var $_fp_timeout = 3600;

Thanks,

Charlie

Posted: Thu May 02, 2002 11:18 pm
by enygma
add this to the Snoopy.class.inc:

set_time_limit(0);

You might add it to your script too, so that it will take as long as it needs.
-enygma