[BlueOnyx:17407] Re: php_admin_value overwriting
Michael Stauber
mstauber at blueonyx.it
Wed Apr 8 13:07:51 -05 2015
Hi Cédric,
> Is there a way to overwrite blueonyx vhost's settings like
> "php_admin_value max_execution_time 30" ?
The option "php_admin_value" can only be used in the Apache
configuration, not in .htaccess files. It also cannot be used via
"ini_set()" from within a script.
However, "max_execution_time" is a PHP_INI_ALL parameter, so you
wouldn't need to use "php_admin_value" for it:
http://php.net/manual/en/info.configuration.php
So the easiest way to use it for just one script would be to add this
line at the top of the PHP script in question:
ini_set('max_execution_time', 0);
That would set the execution time to unlimited for this script.
A better way might be to use this function instead of the ini_set(), though:
http://php.net/manual/en/function.set-time-limit.php
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list