Re: How to run PHP from a MySQL DB
| From: | Alexandru COSTIN | Date: | Wed, 06 Aug 2003 14:27:09 +0000 |
| Subject: | Re: How to run PHP from a MySQL DB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158474@lists.php.net to get a copy of this message | ||
Oopps, sorry for my previous reply.
Actually I've missunderstood your question - I've understood it better
now.
The "eval" is indeed the key - but there is one major performance
issue - when eval-ing code from the database, you won't be able to use a PHP
accelerator - as they can't optimize dynamically eval-ed code.
What we regularily use is to cache the PHP code in some PHP files that
are actually "required" when you need to execute them
Alexandru
--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 312 5312
"Jeremy Darling" <ac_hargis@hotmail.com> wrote in message
news:20030806140135.95984.qmail@pb1.pair.com...
> I have a database of code pages and was wondering if their is a way to
> actually run the code from the Database as if it was part of a page.
>
> Thanks,
> Jeremy
>
>