Apache Timeout

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chvol
Forum Newbie
Posts: 20
Joined: Fri Apr 26, 2002 2:49 pm

Apache Timeout

Post 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
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post 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
Post Reply