ShopMAster Posted September 27, 2007 Share Posted September 27, 2007 My host upgraded to 5.2.4 and now all my include files are not showing up on my pages. Here is how I am defining the include statements: <? // include header image include('http://www.maddenwars.com/includes/mainnav_hd.php'); ?> I looked at the documentation but I can't seem to find out the correct way to include files. Thanks guys. Quote Link to comment https://forums.phpfreaks.com/topic/70835-include-files-in-php-524/ Share on other sites More sharing options...
trq Posted September 27, 2007 Share Posted September 27, 2007 I looked at the documentation but I can't seem to find out the correct way to include files. Don't use a url, use an absolute path. Quote Link to comment https://forums.phpfreaks.com/topic/70835-include-files-in-php-524/#findComment-356119 Share on other sites More sharing options...
d22552000 Posted September 27, 2007 Share Posted September 27, 2007 or use: ini_set("URL_FOPEN",true); Quote Link to comment https://forums.phpfreaks.com/topic/70835-include-files-in-php-524/#findComment-356125 Share on other sites More sharing options...
ShopMAster Posted September 27, 2007 Author Share Posted September 27, 2007 I looked at the documentation but I can't seem to find out the correct way to include files. Don't use a url, use an absolute path. I'm sorry, I'm a newbie. What is an absolute path? or how do you code the ini_set("URL_FOPEN",true); Quote Link to comment https://forums.phpfreaks.com/topic/70835-include-files-in-php-524/#findComment-356133 Share on other sites More sharing options...
trq Posted September 27, 2007 Share Posted September 27, 2007 I'm sorry, I'm a newbie. What is an absolute path? Not really related to php, but it means the full path to a file. You do know what a path is? Just a guess, but the path your trying to include would look like.... <?php include 'includes/mainnav_hd.php'; ?> providing the file your calling this include from is within your doc root. Quote Link to comment https://forums.phpfreaks.com/topic/70835-include-files-in-php-524/#findComment-356135 Share on other sites More sharing options...
ShopMAster Posted September 27, 2007 Author Share Posted September 27, 2007 Nope, did't work. the file is in mwtheleague/index.php the include includes/mainnav_hd.php Quote Link to comment https://forums.phpfreaks.com/topic/70835-include-files-in-php-524/#findComment-356146 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.