ballhogjoni Posted December 6, 2008 Share Posted December 6, 2008 Crap I had my host upgrade me to 5 and now I get this error PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'http://findacreditsolution.com/footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxxx/public_html/xxxxxxxxxxx/main.php on line 85 Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/ Share on other sites More sharing options...
samona Posted December 6, 2008 Share Posted December 6, 2008 Make sure you have the permissions set correctly. Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-707334 Share on other sites More sharing options...
ballhogjoni Posted December 6, 2008 Author Share Posted December 6, 2008 uhh how do i do that? I am on shared hosting. Can I do it or do I have to have my host do it? Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-707336 Share on other sites More sharing options...
balistic Posted December 6, 2008 Share Posted December 6, 2008 so the include is remote? if so your host might have disabled remote includes when upgrading, just ask them. Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-707337 Share on other sites More sharing options...
ballhogjoni Posted December 6, 2008 Author Share Posted December 6, 2008 no its on the same server the files are just in different directories. Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-707338 Share on other sites More sharing options...
Philip Posted December 6, 2008 Share Posted December 6, 2008 Try: <?php include_once('/home/xxxxxxxx/public_html/footer.php'); // using path, instead of domain ?> Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-707341 Share on other sites More sharing options...
PFMaBiSmAd Posted December 6, 2008 Share Posted December 6, 2008 What does a phpinfo() statement show for allow_url_fopen and allow_url_include? Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-707464 Share on other sites More sharing options...
ballhogjoni Posted December 6, 2008 Author Share Posted December 6, 2008 allow_url_fopen = on allow_url_include = off Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-707653 Share on other sites More sharing options...
ballhogjoni Posted December 17, 2008 Author Share Posted December 17, 2008 Ok I am bringing this up again because I am using file_get_contents() to include a website into my website. I am getting this error: file_get_contents(https://www1.xxxxx.com/partners/links/xxxxxxx/details.asp?idmin=23627&tempid=568261) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in /home/xxxx/public_html/xxxxx/card_holders_say.php on line 15 Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-717765 Share on other sites More sharing options...
premiso Posted December 17, 2008 Share Posted December 17, 2008 allow_url_include = off You are not allowed to include URLs no matter what method you are using. By chance does your host Support CURL? (I doubt it but if it does you can use that instead) Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-717771 Share on other sites More sharing options...
ballhogjoni Posted December 17, 2008 Author Share Posted December 17, 2008 aw good point. Yes it supports curl so I will use it. Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-717785 Share on other sites More sharing options...
ballhogjoni Posted December 17, 2008 Author Share Posted December 17, 2008 aw good point. Yes it supports c Link to comment https://forums.phpfreaks.com/topic/135756-solved-php-5-include-gone-wrong/#findComment-717786 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.