Re: evaluating PHP source to a file.

From: Date: Thu, 22 Jun 2000 04:19:05 +0000
Subject: Re: evaluating PHP source to a file.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2581@lists.php.net to get a copy of this message
In article <BLEPLIMCNIHFBLONKBJCIECEEFAA.tfr@cafe.ee>, tfr@cafe.ee ("indrek siitan") wrote: > --> $content=eval($template); > fwrite($FD,$content); > > The problem is how to catch the contents of the eval to a variable and > not print it out on a page. Can anyone share an idea? This thing needs > to be running by Sunday night, so I'm really out of time here. I'm bemused and befuddled. As far as I know, what you wrote describes exactly what you want... What's a sample template, and what's coming out on the browser and what's being stored in $content. Because I would expect this to "work" if what you describe is what you really want. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#2581) next »