String containing PHP Code
| From: | Suhas Pharkute | Date: | Mon, 16 Jun 2003 23:45:41 +0000 |
| Subject: | String containing PHP Code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151753@lists.php.net to get a copy of this message | ||
Hello,
I have a php script which generates a string which has php code in it. I need to run that code.
For example:
<?php
$str = " <?php echo 'Hello World!'; ?>";
?>
Is there any way that we can do it? I know I can do it by writing it to file but then it is no more
secured.
Please let me know,
Thanks
Suhas
_________________________________
Suhas S Pharkute.
P O Box 8551,
Pocatello ID 83209.
1.208.221.3896
http://myweb.cableone.net/psuhas
_________________________________