Re: using disable_functions silently

From: Date: Thu, 23 Aug 2007 00:26:56 +0000
Subject: Re: using disable_functions silently
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-261142@lists.php.net to get a copy of this message
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/

« previous php.general (#261142) next »