Execute PHP code from Database?
I’m hacking a plugin, and have found that putting the PHP code into the DB is my best solution (for a variety of reasons).
I thought that there was a way to put raw html/php code (ie, an entire php page) into the DB (as a single text field) and then execute and display the page.
so if I have something like:
<html> <?php wp_loginout(); ?> <br /> <?php wp_register(); ?> </html>
if will output a page with a login link and a register link.
I’ve tried various eval() combination’s, but I either get a blank page, my php code stripped, or I get straight unexecuted text
What am I doing wrong?
- The topic ‘Execute PHP code from Database?’ is closed to new replies.