Jump to content

Maximum Execution Time - Solved With Our Thanks In The Last Post


niche

Recommended Posts

You have to find the php.ini file on your server and change the max execution setting. I don't know the exact name of the parameter, but it should be pretty obvious when you see it.

Link to comment
Share on other sites

Though it's appropriate to use set_time_limit(); to extend the time limit for a specific script, right?

Link to comment
Share on other sites

There are situations when it's appropriate, yes. Say you have a really intensive script that requires 5 minutes to run. You wouldn't want to set the default time limit (the one you'd change if you set it in php.ini) to 5 minutes, so you use set_time_limit() within that script to set the time limit for just that script. EDIT: If you find yourself constantly overrunning the time limit, then you might consider upping the default set in php.ini though I think most setups keep it at about 60 seconds. I think it defaults to 30 seconds when you install PHP, which IMO is too short.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...