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? Link to comment https://forums.phpfreaks.com/topic/63830-setting-timeout-for-a-single-php-script-on-apache-1/ 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. Link to comment https://forums.phpfreaks.com/topic/63830-setting-timeout-for-a-single-php-script-on-apache-1/#findComment-329593 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); Link to comment https://forums.phpfreaks.com/topic/63830-setting-timeout-for-a-single-php-script-on-apache-1/#findComment-330346 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 Link to comment https://forums.phpfreaks.com/topic/63830-setting-timeout-for-a-single-php-script-on-apache-1/#findComment-330352 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.