Require/Include not working
Posted: 09. December 2009 07:26
I just installed XAMPP 1.7.2. It seems to be working fine overall, but I am having one problem.
I created a folder inside the HTDOCS folder, and then used my browser to go to the index.php page (using "http://localhost/PolkaDotKids/index.php", which displayed the page fine. But when I click on one of the links, the php code displays an IFRAME correctly (and the IFRAME php code works correctly) - but the page header and page end code is not displayed. The php line which doesn't seem to work is "<? Require "inc/header.php" ?>".
I can upload these same pages to my host server, and they work correctly. But I would like to get this to work on my local PC as well. I am running XP.
Thanks for any help anyone is able to offer. Hopefully I just need to tweak some portion of my install.
I created a folder inside the HTDOCS folder, and then used my browser to go to the index.php page (using "http://localhost/PolkaDotKids/index.php", which displayed the page fine. But when I click on one of the links, the php code displays an IFRAME correctly (and the IFRAME php code works correctly) - but the page header and page end code is not displayed. The php line which doesn't seem to work is "<? Require "inc/header.php" ?>".
I can upload these same pages to my host server, and they work correctly. But I would like to get this to work on my local PC as well. I am running XP.
Thanks for any help anyone is able to offer. Hopefully I just need to tweak some portion of my install.