adgnola Posted July 15, 2009 Share Posted July 15, 2009 I am moving to a new server and I'm having issues with some include files. The files reside in my root web in a folder called includes (they are header and footer files). The files have the extension .inc. After to moving to the new server these work fine for locally stored files but when I call these include files from another server I get the following error: Warning: include(http://freemanweb11.freeman.tulane.edu/ ... header.inc) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\web\webdocs\wp-content\themes\freeman\header.php on line 39 Warning: include() [function.include]: Failed opening 'http://freemanweb11.freeman.tulane.edu/includes/header.inc' for inclusion (include_path='.;C:\php5\pear') in C:\web\webdocs\wp-content\themes\freeman\header.php on line 39 In php.ini both allow_url_fopen and allow_url_includes are set to "on". The is the same set up as on the old server where everything works fine. Oddly enough if I name the include files with an extension of .php they work fine. Can anyone point me in the right direction? My brain is wracked! Thanks in advance for any assistance. Another oddity, the error references c:\php5\pear. This folder does not exist when I check the phpinfo the configuration file loaded for all servers is what I expect it to be. When I installed php I installed in a folder on the root of c called "php" there is no php5 folder. I can't determine where this is coming from. Quote Link to comment https://forums.phpfreaks.com/topic/166076-include-file-issues/ Share on other sites More sharing options...
rhodesa Posted July 15, 2009 Share Posted July 15, 2009 is http://freemanweb11.freeman.tulane.edu/includes/header.inc the actual address? I can't open the page Quote Link to comment https://forums.phpfreaks.com/topic/166076-include-file-issues/#findComment-875864 Share on other sites More sharing options...
adgnola Posted July 15, 2009 Author Share Posted July 15, 2009 Yes that is correct, however if you visit http://freemanweb11.freeman.tulane.edu/includes/header.php it works. It's very odd. Quote Link to comment https://forums.phpfreaks.com/topic/166076-include-file-issues/#findComment-875961 Share on other sites More sharing options...
rhodesa Posted July 15, 2009 Share Posted July 15, 2009 Is that on a private network, cus I can't get to it. Quote Link to comment https://forums.phpfreaks.com/topic/166076-include-file-issues/#findComment-875965 Share on other sites More sharing options...
BMurtagh Posted July 21, 2009 Share Posted July 21, 2009 I can't access the site either, I think that's part of the issue, but can you post the code for the page where you call the includes? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/166076-include-file-issues/#findComment-879313 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.