On Sun, Jun 16, 2002 at 01:31:45AM +0800, Lance wrote:
> i was developing an application that will read in the content of a html
> file. and within this html file contains php variables which will be
> replaced using the eval() function with its required value. and within
> this html, i want to be able to run php functions.
> ... snip ...
> eval("\$rs = \"<span class=\"normal\">".date("m d
Why not merge your PHP and HTML straight up like this?
<span class="normal"><?php echo date('m d y') . $phpVar; ?></span>
Then, just have the whole HTML file parsed as PHP.
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php