Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute code from mySQL database?

Status
Not open for further replies.

KempCGDR

Programmer
Joined
Jan 10, 2003
Messages
445
Location
GB
Hi, is it possible to execute php code that is stored in a database? The only way I have come up with so far is to fetch the code, write it to a temporary file and then include that file, but this seems to be a bit clunky to me, I try to never use files when there's another option. So, any ideas?
 
Thanks, that's what I wanted almost exactly (I was hoping for something that was slightly more like include, as in it treats the code as part of the current page, but you can't have everything).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top