Parse function?

From: Date: Thu, 12 Aug 1999 00:27:21 +0000
Subject: Parse function?
Groups: php.version4 
Request: Send a blank email to php-version4+get-3352@lists.php.net to get a copy of this message
Hi! I was wondering if anyone other than me have run into a problem where you store mixed html and php code in a database and then want to display it AND have the php code parsed? Something like the way eval() works. Here's an example of what i store: <HTML> <HEAD> <TITLE>Name: <% if(isset($name)) echo $name %></TITLE> <% virtual("/includes/scripts/mouseover.txt") %> </HEAD> I need to have the pieces of code parsed... There is a chance that i've missed something about eval() and that it could handle this but i haven't got it to work anyway, so if i haven't missed anything, could we have a parse() function? Thanks, Johan Isacsson

« previous php.version4 (#3352) next »