Re: run PHP script in clean memory space
| From: | Eugene Lee | Date: | Tue, 21 Oct 2003 13:57:52 +0000 |
| Subject: | Re: run PHP script in clean memory space | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166952@lists.php.net to get a copy of this message | ||
On Tue, Oct 21, 2003 at 02:48:09AM +0200, Honza Malik wrote:
:
: I want to give administrators of our CMS the possibility to use PHP commands
: in HTML templates. Templates are parsed by our PHP script.
:
: The problem is, that I don't want administrators to be able to list our
: $GLOBALS (where is database password) or call our functions. Is there the
: possibility to run administrator's PHP code (from our PHP) in clean
: environment? Other solution?
PHP doesn't really have the concept of a "safe interpreter". The next
best thing is to take a look at PHP's safe mode stuff and see what you
can tweek:
http://www.php.net/manual/en/features.safe-mode.php