Reply to Re: executing PHP code from db?

Your name:

Reply:


Posted by J.O. Aho on 06/18/05 13:54

Chris B wrote:
>> I never tried this myself, and on this Saturday morning can't really
>> think
>> of the way to do it, but I am certain it must be possible.
>
>
>
> Isn't that just a case of grabbing the database entry and putting
> include($url) where $url is the result of the query?

Yes, you can pull data from the database and then push it into a temp file and
then include the same file again to the original file, but you have to keep
track of the temp files, so that not two users will overwrite each others temp
files and generate the wrong output for them.

Another way would be to use system()/exec() and let cli-php to execute the
script pulled from the database, this require some setting of values before
sending the script to the cli-php, in ase you want to use values from the
original script.

I think there was a third way too, but not completely sure about that.


//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация