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 :)

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to