Title: Running PHP code into posts and pages
Last modified: August 18, 2016

---

# Running PHP code into posts and pages

 *  [oce](https://wordpress.org/support/users/josepo/)
 * (@josepo)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/running-php-code-into-posts-and-pages/)
 * Hello everybody,
 * I’m looking for a good plugin that let me attach executable PHP code into my 
   posts and my pages. There are several plugins in wp-plugins.net:
 * – RunPHP (by Mark Somerville)
    – RunPHP (by James Van Lommel) – PHP Exec – Exec-
   PHP
 * I’m not sure which is better (or more appropriate) for installing on WordPress
   2.0.4. What plugin I use?
 * Thanks a lot for your responses.
    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/running-php-code-into-posts-and-pages/#post-449435)
 * I’m using Exec-PHP from [http://bluesome.net/post/2005/08/18/50/](http://bluesome.net/post/2005/08/18/50/)
 * Works fine with 2.0.4, but probably the others do as well. I can’t remember when
   I started using this one, or why it instead of another….
 *  Thread Starter [oce](https://wordpress.org/support/users/josepo/)
 * (@josepo)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/running-php-code-into-posts-and-pages/#post-449455)
 * Hi vkaryl, thanks for your response.
 * I’ve read some information about all those plugns. It seems Exec-PHP is the most
   appropriate for WP 2.x and it really good tested.
 * Cheers
 *  [pcmike](https://wordpress.org/support/users/pcmike/)
 * (@pcmike)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/running-php-code-into-posts-and-pages/#post-449473)
 * I tried the plugin but get this message:
    An appropriate representation of the
   requested resource /wp/wp-admin/post.php could not be found on this server.
 * It won’t post…
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/running-php-code-into-posts-and-pages/#post-449475)
 * pcmike – talk to your host provider; they’ve probably done something wonky with
   mod_security (lot of that going around these days….)
 *  [pcmike](https://wordpress.org/support/users/pcmike/)
 * (@pcmike)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/running-php-code-into-posts-and-pages/#post-449482)
 * I have a Page that works fine… How can I make that page my “Home” page????
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/running-php-code-into-posts-and-pages/#post-449484)
 * awesome thread hijack!
 * For now, [http://www.ilfilosofo.com/blog/home-page-control/](http://www.ilfilosofo.com/blog/home-page-control/)
   should work for you.
 * I believe next release of WP will have something along those lines built-in.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/running-php-code-into-posts-and-pages/#post-449485)
 * [@pcmike](https://wordpress.org/support/users/pcmike/),
    Your question has been
   answered twice in some other threads: [http://wordpress.org/support/topic/86501?replies=2](http://wordpress.org/support/topic/86501?replies=2)
   [http://wordpress.org/support/topic/86486?replies=6#post-441517](http://wordpress.org/support/topic/86486?replies=6#post-441517)
 * Don’t double and triple post… some mods might become very mean and “trigger-happy”
   with the Delete button 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Running PHP code into posts and pages’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 7 replies
 * 5 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/running-php-code-into-posts-and-pages/#post-449485)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
