Re: [PHP] using disable_functions silently

2007-08-26 Thread Richard Lynch
On Thu, August 23, 2007 12:58 pm, Samuel Vogel wrote: > That'd be at least some kind of a solution. > I'm thinking of overwriting the functions I want to block with one, > that > just returns true and does nothing. > How would I do that? E. You don't. Well, okay, you *COULD* install the "Run

Re: [PHP] using disable_functions silently

2007-08-26 Thread Richard Lynch
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 Vo

Re: [PHP] using disable_functions silently

2007-08-23 Thread Craige Leeder
You can't overwrite PHP's built-in functions, nor any function that has been defined for that matter. - Craige On 8/23/07, Samuel Vogel <[EMAIL PROTECTED]> wrote: > That'd be at least some kind of a solution. > I'm thinking of overwriting the functions I want to block with one, that > just return

Re: [PHP] using disable_functions silently

2007-08-23 Thread Samuel Vogel
That'd be at least some kind of a solution. I'm thinking of overwriting the functions I want to block with one, that just returns true and does nothing. How would I do that? Jay Blanchard schrieb: [snip] Unfortunately we would need a solution without changing the PHP code of our users. No way

RE: [PHP] using disable_functions silently

2007-08-23 Thread Jay Blanchard
[snip] Unfortunately we would need a solution without changing the PHP code of our users. No way to do that? [/snip] Not really. You could auto-prepend all of the PHP files with the necessary PHP files, but that may not be a really good solution. -- PHP General Mailing List (http://www.php.net/

Re: [PHP] using disable_functions silently

2007-08-23 Thread Craige Leeder
Oh, okay. He simply wants to ignore them without raising any flags to say it has been done. I get what he wants. However, as you stated, there is no way to do this (to the best of my knowledge). - Craige On 8/23/07, Chris <[EMAIL PROTECTED]> wrote: > Craige Leeder wrote: > > Are you *running* a s

Re: [PHP] using disable_functions silently

2007-08-23 Thread Chris
Craige Leeder wrote: Are you *running* a shared hosting environment? If so, what is to stop you from adding the exec() function to the list in php.ini? He wants php to automatically ignore functions listed in the 'disabled_functions' list - which there is no way to do. -- Postgresql & php tu

Re: [PHP] using disable_functions silently

2007-08-23 Thread Craige Leeder
Are you *running* a shared hosting environment? If so, what is to stop you from adding the exec() function to the list in php.ini? - Craige > > Don't think so. The code just needs to handle it better. I do it like > > this: > > > > $disabled_functions = explode(',', str_replace(' ', '', > > ini_g

Re: [PHP] using disable_functions silently

2007-08-22 Thread Samuel Vogel
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 forbi

Re: [PHP] using disable_functions silently

2007-08-22 Thread Chris
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()-c

[PHP] using disable_functions silently

2007-08-22 Thread Samuel Vogel
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 t