note 70292 modified in function.eval by danbrown

From: Date: Sun, 17 May 2009 19:55:30 +0000
Subject: note 70292 modified in function.eval by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155294@lists.php.net to get a copy of this message
If you are trying to get eval() to run a string as if it were from an include file, try this: <?php eval("?>".$string); ?> Eval starts in PHP Script mode, break into html mode first thing and you're done. --was-- If you are trying to get eval() to run a string as if it were from an include file, try this: eval("?>".$string); Eval starts in PHP Script mode, break into html mode first thing and you're done. http://php.net/manual/en/function.eval.php

« previous php.notes (#155294) next »