Variable substitution in HTML

From: Date: Wed, 17 Oct 2001 18:36:28 +0000
Subject: Variable substitution in HTML
Groups: php.general 
Request: Send a blank email to php-general+get-71375@lists.php.net to get a copy of this message
Is there a simple way of converting PHP variables in HTML? e.g. I have HTML: <P> My name is $myname </P> Is there a conversion method that doesn't require further changes to the HTML (to avoid adding <?= $myname ?> each time, for instance), and that doesn't require knowledge of variable names (e.g. ereg_replace). In a Unix shell I once sourced an HTML file, that led to correct shell variable substitution - but what about under Windows ? Thanks, Chris

« previous php.general (#71375) next »