you can use exec() but be sure that the code you're executing is not malicious first....
-----Original Message----- From: Suhas Pharkute [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 June 2003 9:46 AM To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php