Re: [PHP4BETA] Parse function?

From: Date: Wed, 11 Aug 1999 23:47:38 +0000
Subject: Re: [PHP4BETA] Parse function?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3354@lists.php.net to get a copy of this message
just a Q, why don't you use ReadFile() instead of that virtual() (&expensive) call. Johan Isacsson wrote: > > 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 > > -- > PHP 4 Beta

« previous php.version4 (#3354) next »