Skip to main content
April 18, 2008
Question

php.ini

what do you set your default script timeouts as? I have it at 60 seconds
This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Participant
April 25, 2008
At the beginning of the script, type in the following command.

set_time_limit ( int $seconds )

You can read more about it at http://de3.php.net/set-time-limit.
Translate
April 19, 2008
how do you write the ini set when needed?
Translate
Participant
April 19, 2008
The general answer is that it depends. On my servers I have kept it to 30 seconds as default. But in the scripts which I know will take long then I reset it to whatever number I want at the beginning of the script.

On servers with low traffic, the timeout won't make big difference, but on busy servers, it is recommended to have the script finish its job asap so it could handle more users. So having the shorter timeout is recommended on busy servers.

HTH,
Ketan
Translate