Re: How to run PHP from a MySQL DB
| From: | Alexandru COSTIN | Date: | Wed, 06 Aug 2003 14:59:29 +0000 |
| Subject: | Re: How to run PHP from a MySQL DB | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158493@lists.php.net to get a copy of this message | ||
php accelerator : http://www.google.com/search?q=php+accelerator
As for the tmp solution - this is indeed the approach
Alexandru
--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 312 5312
"Jeremy Darling" <ac_hargis@hotmail.com> wrote in message
news:20030806145754.93555.qmail@pb1.pair.com...
> 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
> > >
> > >
> >
> >
>
>