RE: [PHP] String containing PHP Code
| From: | Martin Towell | Date: | Mon, 16 Jun 2003 23:48:54 +0000 |
| Subject: | RE: [PHP] String containing PHP Code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151755@lists.php.net to get a copy of this message | ||
you can use exec() but be sure that the code you're executing is not
malicious first....
-----Original Message-----
From: Suhas Pharkute [mailto:spsuhas@cableone.net]
Sent: Tuesday, 17 June 2003 9:46 AM
To: php-general@lists.php.net
Subject: [PHP] String containing PHP Code
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
_________________________________
__________ Information from NOD32 1.436 (20030612) __________
This message was checked by NOD32 for Exchange e-mail monitor.
http://www.nod32.com