Re: How to run PHP from a MySQL DB
| From: | Jeremy Darling | Date: | Wed, 06 Aug 2003 14:57:52 +0000 |
| Subject: | Re: How to run PHP from a MySQL DB | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158491@lists.php.net to get a copy of this message | ||
This is actually for a personal web portal, so very little will be eval'd
out of the database most of the time.
I'm not sure what a PHP accelerator is, but I'm guessing that if I wanted to
use it I could get away with doing something like:
Export the php file from the db to an actual tmp file. require it and call
it from inside of my dbpage.php file.
"Alexandru Costin" <acostin@interakt.ro> wrote in message
news:20030806142746.39945.qmail@pb1.pair.com...
> 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
> >
> >
>
>