You could change the PHP source to not emit an error when a function
doesn't exist and matches the list in disable_functions...

But since a whole heck of a lot of scripts would NOT "just work"
without exec, that would probably not be such a Good Idea...

On Thu, August 23, 2007 12:25 am, Samuel Vogel wrote:
> 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
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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

Reply via email to