Forum Moderators: coopster
In the website, the only PHP we use is the include command to pull in the header.html, footer.html, and navigation.html files.
The root pages of the site has the command as:
<?php include('navigation.html')?>
For those pages that were behind a folder (ie., /articles/index.html), the command had to be:
<?php include('/home/heavensa/public_html/header.html')?>
Now ... on the dedicated server, the root pages of the site are still fine ... but those pages behind folders doesn't recognize any version of the command to pull in the header, footer, and navigation.
I have tried the full path to the file and other variations. Nothing works. There is no permissions issue according to Support for the server.
I'm still learning PHP, so please explain plainly *grins* I did install and modify my own Oscommerce cart with no knowledge of php or sql ... but can't write my own code by any means.
Thanks in advance for any suggestions you can offer.
Barbara
my gut says it's just the path since you can include at the root level
since your root include looks ike this
<?php include('navigation.html')?>
you could try something like this
<?php include $_SERVER['DOCUMENT_ROOT'] . 'navigation.html';?>
error_reporting(E_ALL);
see if that shows the error.
another thing for error reporting is there is a setting in php.ini display_errors [php.net] which may be turned off
another question for clarity
do these files, in the root and other, all end in php?
When my other hosting company upgraded to PHP5, they told me the new path to use on those pages within folders ... that is all I needed ... I re-did the pages accordingly.
Something so easy ... why does everyone have to make it so complicated? grrrr. hehehe