Title: Executing PHP from Database Page?
Last modified: August 18, 2016

---

# Executing PHP from Database Page?

 *  [gknitz](https://wordpress.org/support/users/gknitz/)
 * (@gknitz)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/executing-php-from-database-page/)
 * I have PHP embedded in a WordPress page such as;
 * “The is the content of a wordpress page. <?php do_this(); ?>
    How do get the 
   PHP to run?”
 * I have tried to us PHP eval() with no luck.
    Is there a PHP function I can use
   to execute the embedded PHP. TIA.
 * Gary.

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/executing-php-from-database-page/#post-587543)
 * Unless you have a plugin like execPHP, PHPexec etc. (there are several of them)
   php code is NOT executed in content (Pages or posts).
    The other way to do it
   is to have the code in a Page template and create new Page by using that template.

Viewing 1 replies (of 1 total)

The topic ‘Executing PHP from Database Page?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/executing-php-from-database-page/#post-587543)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
