Title: PHP File Include Question
Last modified: August 18, 2016

---

# PHP File Include Question

 *  [g0nk](https://wordpress.org/support/users/g0nk/)
 * (@g0nk)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/php-file-include-question/)
 * I did a search, and didnt reall find anything, or, i jus tsuck at searching..
   anyways..
 * I am trying to include a file via PHP into a page on my site.. I use the correct
   syntax, but it’s not grabbing the file. here is what I am using in the body of
   the WP Page…
 * `<?php include("http://g0nk.com/pic-gallery/index.php") ?>`
 * I am basically trying to embed a Coppermine Photo gallery into a page on the 
   site. I can’t seem to figure this out.. any help would be appreciated..

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

 *  Thread Starter [g0nk](https://wordpress.org/support/users/g0nk/)
 * (@g0nk)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/php-file-include-question/#post-220220)
 * oh, here is the page i’m trying to display it at..
 * [http://g0nk.com/?page_id=16](http://g0nk.com/?page_id=16)
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/php-file-include-question/#post-220222)
 * You cannot use PHP code in the content of your posts or Pages.
    As for including
   a gallery… just search, there are hundreds of posts about it, including coppermine.

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

The topic ‘PHP File Include Question’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/php-file-include-question/#post-220222)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
