Ok, that being said how can I keep some functions available for use with my
scripts and disable their use by others.  Even while allowing the others to
include my scripts into their own and still have the functions operate?

For example, I write a script that calls exec(), my script needs to be able
to run the function, even when my script is included into another users
script who cannot themselves run the function.

My initial thought is that it would be nice if we could declare a security
string in the php.ini file.  If this string is left null (the default) all
functions would operate as normal.  If the string was not blank, then the
user would have to pass that variable into the secured functions as another
argument.  if the security string is set to "1234" then exec(mycommand)
would need to be exec(mycommand, "1234") to work.

It sucks, but we often need to be able to use functions that should be off
limits to others.

Daryl

-----Original Message-----
From: Derick Rethans [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2003 10:28 AM
To: Daryl Meese
Cc: Php-General
Subject: Re: [PHP] disabling functions


On Mon, 30 Jun 2003, Daryl Meese wrote:

> Can I edit the disabled_functions setting on a per directory bases.

No, you can not do that. Due to performance reasons it won't be
implemented either.

Derick

--
"Interpreting what the GPL actually means is a job best left to those
                    that read the future by examining animal entrails."
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/
 International PHP Magazine                          http://php-mag.net/
-------------------------------------------------------------------------



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

Reply via email to