Title: PHP include?
Last modified: August 18, 2016

---

# PHP include?

 *  Anonymous
 * [21 years, 7 months ago](https://wordpress.org/support/topic/php-include/)
 * I want to include [http://www.rosexia.net/stroke/WORDPRESS/](http://www.rosexia.net/stroke/WORDPRESS/)
   in [http://www.rosexia.net/stroke/e.php.](http://www.rosexia.net/stroke/e.php.)
   I keep on getting this error:
    Warning: main(./wp-blog-header.php): failed to
   open stream: No such file or directory in /home/rosexia/public_html/stroke/WORDPRESS/
   index.php on line 5 Fatal error: main(): Failed opening required ‘./wp-blog-header.
   php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/rosexia/public_html/
   stroke/WORDPRESS/index.php on line 5 What can I do to fix it?

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

 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/php-include/#post-110452)
 * You will have to login to wordpress and change the Site URL setting to [http://www.rosexia.net/stroke/e.php](http://www.rosexia.net/stroke/e.php)
   and move your index.php to /stroke/
    That should work.
 *  [sekt](https://wordpress.org/support/users/sekt/)
 * (@sekt)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/php-include/#post-110453)
 * I’m having a similar problem, but I don’t really understand the solution?
    Changing
   the site URL just messes up the script and how do you change where index.php 
   is being generated? Cheers.
 *  [autumnqiu](https://wordpress.org/support/users/autumnqiu/)
 * (@autumnqiu)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/php-include/#post-111132)
 * Hi! I have a similar problem.
 * My weblog is currently at [http://autumnqiu.little-wonder.net](http://autumnqiu.little-wonder.net)
   using a PHP include from another directory.
 * However, when I click on “comment” in the main weblog page, the individual entry
   page desn’t appear. Instead, the weblog reloads all over again. (Try it out and
   you would understand what I mean.)
 * I hope someone would be able to help me out here. Thanks in advance!
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/php-include/#post-111133)
 * Have you added a permalink structure to your .htaccess file?
 *  [autumnqiu](https://wordpress.org/support/users/autumnqiu/)
 * (@autumnqiu)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/php-include/#post-111134)
 * Permalink structure? How do I go about doing that? 😮
 * Nuclearmoose: Thanks so much for helping me with all my WP problems! I am a newbie,
   you see.
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/php-include/#post-111135)
 * autumnqiu,
    We are all newbies at some point! Here’s a page on Codex about permalink
   structure: [http://codex.wordpress.org/Permalink_Structure](http://codex.wordpress.org/Permalink_Structure)
 * Yes, there’s a lot to read and learn, but trust me, it all falls together quite
   quickly! If I can learn this stuff, then anyone can! Heck, even TechGnome learned
   how to use WordPress! LOL!
 *  [autumnqiu](https://wordpress.org/support/users/autumnqiu/)
 * (@autumnqiu)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/php-include/#post-111136)
 * Thanks. 😛
 * But I keep getting an “internal server error” problem.
 * Is there any other way to rectify this other than using permalinks?
 * (As in, calling the SQL database from other directories rather than the directory
   that WP was installed in.)
 * Thankies! 😛
 *  [autumnqiu](https://wordpress.org/support/users/autumnqiu/)
 * (@autumnqiu)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/php-include/#post-111137)
 * Okay, now the .htaccess file is uploaded successfully.
 * But my permalinks are still not working. 🙁

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

The topic ‘PHP include?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 5 participants
 * Last reply from: [autumnqiu](https://wordpress.org/support/users/autumnqiu/)
 * Last activity: [21 years, 5 months ago](https://wordpress.org/support/topic/php-include/#post-111137)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
