I have a php page that displays fine when served from our ISP, but it does not pull in the header.php file when served by XAMPP from localhost.
To keep the same appearance, we split our html files into a common header section, a CenterPanel section that changes for each file and a common footer section. We then wrap the header html code as follows:
..and save it as header.php
The common end of the html file is saved as footer.php
And the CenterPanel, which changes from one page to another is sandwiched between php requires:
<? require_once('header.php'); ?>
<!-- Page specific html code goes here -->
<? require_once('footer.php'); ?>
Can anyone shed any light why XAMPP's PHP should behave differently from our ISP's PHP?