Re: [PHP4BETA] Include-like on strings
| From: | Faisal Nasim | Date: | Tue, 07 Mar 2000 16:09:01 +0000 |
| Subject: | Re: [PHP4BETA] Include-like on strings | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11682@lists.php.net to get a copy of this message | ||
Hi,
> > 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.
>
> I want to write mixed HTML and PHP code and save it into database, not
> in files. What is THE RIGHT way?
As far as I can tell, there is no function for
this!
You may want to checkout include() and family
and write your own function which does this.
It will be easy if include() (require() or
other) reads the file first and then parse
it throught the bison parser... send a patch
if you are successful.
Enjoy!
Faisal.
P.S. I'll give it a try tomorrow!