Title: including a php file
Last modified: August 19, 2016

---

# including a php file

 *  Resolved [mrcreeky](https://wordpress.org/support/users/mrcreeky/)
 * (@mrcreeky)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/including-a-php-file/)
 * Hi,
 * I need to find the best way to include a php file in to the content area.
 * I have installed inline php, that allows me to do this:
    `[exec] echo 'Hello 
   World'; [/exec]`
 * But when I need to include a file that has `<?php ?>` markers the idea fails.
 * What is the best solution to get this working right?

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/including-a-php-file/#post-1239252)
 * exec php always works for me
    [http://wordpress.org/extend/plugins/exec-php/](http://wordpress.org/extend/plugins/exec-php/)
 *  Thread Starter [mrcreeky](https://wordpress.org/support/users/mrcreeky/)
 * (@mrcreeky)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/including-a-php-file/#post-1239259)
 * Thank you for you help! 🙂

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

The topic ‘including a php file’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [mrcreeky](https://wordpress.org/support/users/mrcreeky/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/including-a-php-file/#post-1239259)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
