Re: Executing PHP code during parse-time

From: Date: Wed, 14 May 2003 07:02:46 +0000
Subject: Re: Executing PHP code during parse-time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147548@lists.php.net to get a copy of this message
A> I want to execute PHP code that i generate while parsing the page A> ex: A> <?php A> $phpcode='echo "Hello 1";'; A> ... some code here A> now i want to execute PHP code in $phpcode here A> how can i do that? Did you try: eval($phpcode); Anton

« previous php.general (#147548) next »