tibberous Posted August 8, 2007 Share Posted August 8, 2007 I have a script that needs it's timeout value increased. It works if Timeout is set in the httpd.conf file, but the client wants it so it is only changed for that script, not site wide. Any idea how to do this? Quote Link to comment Share on other sites More sharing options...
d.shankar Posted August 21, 2007 Share Posted August 21, 2007 Open your php.ini file and search for "max_execution_time" and increase the seconds and save the file. Restart apache. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted August 21, 2007 Share Posted August 21, 2007 ^^ "but the client wants it so it is only changed for that script, not site wide." at the top of your script, use ini_set('max_execution_time', $value_in_seconds); Quote Link to comment Share on other sites More sharing options...
steviewdr Posted August 21, 2007 Share Posted August 21, 2007 Im sure it could be done in a htaccess file also. Something like: php_max_execution_time 60 -steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.