Re: RE: [PHP-GENERAL] evaluating PHP source to a file.
| From: | Faisal Nasim | Date: | Thu, 22 Jun 2000 09:50:27 +0000 |
| Subject: | Re: RE: [PHP-GENERAL] evaluating PHP source to a file. | ||
| References: | 1 | Groups: | php.dev php.general |
| Request: | Send a blank email to php-dev+get-21950@lists.php.net to get a copy of this message | ||
| Hi,
|
| >> --> $content=eval($template);
| > 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.
|
| no, it's not working that way. eval() always writes it's output
| to the current document and there seems to be no way of catching
| it into the $content.
<?
ob_start ();
print "test";
$content = ob_get_contents ();
ob_end_clean ();
print "Content has: $content";
?>
Faisal