Forum Moderators: coopster

Message Too Old, No Replies

php Timeout Errors

         

erikcw

9:19 pm on Apr 26, 2006 (gmt 0)

10+ Year Member



Hi all,

I'm working on a web services script that has to process allot of xml data. It often times out while it is running.

What can I do to get around the standard 30 second php execution limit?

Thanks!
Erik

sned

10:30 pm on Apr 26, 2006 (gmt 0)

10+ Year Member



You could try something like:

ini_set('max_execution_time', 'sometime');

see ini_set [us2.php.net]

-sned

erikcw

10:47 pm on Apr 26, 2006 (gmt 0)

10+ Year Member



Thanks for your response!

What if it is a shared host in php safe mode?

Psychopsia

5:08 am on Apr 28, 2006 (gmt 0)

10+ Year Member



You should try this:

@set_time_limit(60);

The default timeout is 30 seconds, and if you set 60, the script will run for 90 seconds.

default_time + seconds