Andy Fang Posted July 24, 2013 Share Posted July 24, 2013 Hello LU, My website is botproducts.net. The problem I'm having is that I want to include the header file located at http://botproducts.net/leagueoflegends/header.php however I get this error: PHP Error Message Warning: include() [function.include]: Failed opening '/leagueoflegends/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a2456912/public_html/leagueoflegends/index.htmlon line 3 and also the code I'm using is include ('leagueoflegends/header.php'); Link to comment Share on other sites More sharing options...
Andy Fang Posted July 25, 2013 Author Share Posted July 25, 2013 I've tried <?php include ('/header.php'); ?> and it give me: Warning: include() [function.include]: Failed opening '/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a2456912/public_html/leagueoflegends/index.html on line 3 Link to comment Share on other sites More sharing options...
Larry Posted July 25, 2013 Share Posted July 25, 2013 Where is the file that's doing the including? Is it in the web root directory or the leagueoflegends subdirectory or somewhere else? Link to comment Share on other sites More sharing options...
Andy Fang Posted July 25, 2013 Author Share Posted July 25, 2013 It's in subdirectory. Link to comment Share on other sites More sharing options...
Larry Posted July 26, 2013 Share Posted July 26, 2013 Could you be more specific? Link to comment Share on other sites More sharing options...
Recommended Posts