Re: Help with direction
| From: | Tom Sommer | Date: | Fri, 30 Apr 2004 05:27:32 +0000 |
| Subject: | Re: Help with direction | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-24506@lists.php.net to get a copy of this message | ||
Gareth M wrote:
Basically I wanted to see if PHP would execute script I echo to the screen. It didn't work so I wanted to know if it supported this or maybe if support could be added. The reason why I wanted to see if this work is because I wanted to have several pages all in one file and then have several files that would just accept a string via post/ get and then echo the string (which would contain php) and then execute the containing script.<?php eval('echo phpinfo();'); ?> http://php.net/manual/en/function.eval.php Further questions? Ask here: php-general@lists.php.net PS. You want to be careful with this, so not just anybody can walk in and execute PHP code, it's fairly easy to comprimise a site by passing PHP code directly into a script -- Tom Sommer