Re: [PHP4BETA] Include-like on strings
| From: | Faisal Nasim | Date: | Mon, 06 Mar 2000 16:34:50 +0000 |
| Subject: | Re: [PHP4BETA] Include-like on strings | ||
| References: | 1 2 3 4 5 6 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11594@lists.php.net to get a copy of this message | ||
: On Sun, 05 Mar 2000, Maxim Podorov wrote:
: > include()ed files are normal HTML files with "<?..?>"-formatted PHP
: > statements, while eval() reqiures pure PHP code (correct me). I think it
: > would be great to have a function that works like include() but on
: > strings (which can be stored in DB).
:
: I still don't understand what you want. Why can't you just use <? print
: $htmlstring; ?>?
I assume he has a complete page in a string...
$string = "
<?
# etc
# more etc
?>
";
And would like to evaluate it as include() does on files!
includes ( file );
to
include ( char*/string );
eval() does this, but it won't treat it like include(), so
<? and ?> will produce errors!
Enjoy!
Faisal