note 7349 deleted from eval by jmoore

From: Date: Tue, 15 Aug 2000 00:13:08 +0000
Subject: note 7349 deleted from eval by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-1865@lists.php.net to get a copy of this message
<p>re: evalling mixed text and php</p> <p>i've got the following code chunk; <pre> $bob="a variable "; $strip=" is a string containing &lt;?php echo $bob ; ?> in the middle"; eval('?>'.$strip); </pre> that fails to execute. if i replace $bob with a string then it works fine</p> <p>is this an execution context problem? i've tried globaling the variable, but it doesn't work</p> <p>cheers, ru.</p>

« previous php.notes (#1865) next »