Re: [PHP4BETA] Include-like on strings

From: Date: Mon, 06 Mar 2000 20:38:42 +0000
Subject: Re: [PHP4BETA] Include-like on strings
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-11633@lists.php.net to get a copy of this message
On Mon, 6 Mar 2000, Andrei Zmievski wrote: }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; ?>? Think he means something like: <?php $bla=" <? ## some PHP code ?> <!-- some HTML --> "; evalude($bla); # :-> ?> First way to write self modifing code... :> In my eyes this is not a very senseful construct, cause once implemented it would be used for things which can be implemented in another way much cleaner. There is no "must" for such a function. -- SSilk - Alexander Aulbach - Herbipolis/Frankonia Minoris - (0931)22032

« previous php.version4 (#11633) next »