Unfortunately we would need a solution without changing the PHP code of
our users.
No way to do that?
Regards,
Samy
Chris schrieb:
Samuel Vogel wrote:
I would like to know, if there is any way, to use disable_functions
silently.
We are running an shared hosting environment and therefore forbid the
use of exec() etc.
Many of our users, just seem to be to dumb to comment out exec() in
phpBB etc.
Since removing the exec()-calls works fine, is there any way to just
omit them silently from the server side?
Don't think so. The code just needs to handle it better. I do it like
this:
$disabled_functions = explode(',', str_replace(' ', '',
ini_get('disable_functions')));
if (!in_array('set_time_limit', $disabled_functions)) {
set_time_limit(0);
}
Works every time :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php