RE: [PHP] Executing PHP code during parse-time
| From: | Fatih Üstündağ | Date: | Wed, 14 May 2003 06:59:42 +0000 |
| Subject: | RE: [PHP] Executing PHP code during parse-time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147547@lists.php.net to get a copy of this message | ||
you can use eval() function.
eval($phpcode);
-----Original Message-----
From: Adams [mailto:lonereck@hotmail.com]
Sent: Wednesday, May 14, 2003 10:39 AM
To: php-general@lists.php.net
Subject: [PHP] Executing PHP code during parse-time
I want to execute PHP code that i generate while parsing the page
ex:
<?php
$phpcode='echo "Hello 1";';
... some code here
now i want to execute PHP code in $phpcode here
how can i do that?
?>
Thaks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php