Re: using disable_functions silently
| From: | Samuel Vogel | Date: | Thu, 23 Aug 2007 05:25:27 +0000 |
| Subject: | Re: using disable_functions silently | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261150@lists.php.net to get a copy of this message | ||
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 :)