tarun Posted February 3, 2007 Share Posted February 3, 2007 Warning: include() [function.include]: Failed opening '******************' for inclusion (include_path='.:/usr/share/php') in ******************* on line 2 Is One Of The Errors I Get When Using This (Obviosly With Out The *'s Though): <?PHP $host = $_SERVER['HTTP_HOST']; ?> <?PHP INCLUDE($host . "/header.php"); ?> <CENTER> <IMG SRC="/images/tarun.png" WIDTH="336" HEIGHT="109" BORDER=0 ALT=""> </CENTER> <?PHP INCLUDE($host . "/footer.php"); ?> Any Help? Thnx Tarun Link to comment https://forums.phpfreaks.com/topic/36899-help-with-include-host/ Share on other sites More sharing options...
sayedsohail Posted February 3, 2007 Share Posted February 3, 2007 // Try this if ((include 'http:\\localhost\xyz.php') == 'OK') { echo 'OK'; } ?> by the host is a reserved word try using something else lhost etc. Please have a look at this page: http://uk.php.net/include/ Link to comment https://forums.phpfreaks.com/topic/36899-help-with-include-host/#findComment-176034 Share on other sites More sharing options...
tarun Posted February 3, 2007 Author Share Posted February 3, 2007 Thnx For Your Help BUT Ive Discovered The Problem My Bloody Free Web Host Decided To Disable include and file_get_contents In The Server Configuration Thnx Alot www.110mb.com Link to comment https://forums.phpfreaks.com/topic/36899-help-with-include-host/#findComment-176036 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.