I'm using a PHP include for my header/navigation, but some pages are unable to find that file. I'm using a root-level link
<?php include("/includes/masthead.php"); ?>
but pages outside of the root folder are not locating the masthead file. For instance:
index.php locates and processes masthead.php just fine; adopt/adoptadog/php returns an error saying the file does not exist.
Is this because PHP doesn't process links in the same way that HTML does, so my root-relative link just isn't being interpreted by the php include function?
I'd like to be able to have a root-relative link work in my include statement so that statement can go into an Expression Web template. The template seems to write the same address in every page regardless of the location of the page. Maybe it doesn't see a link within a PHP tag the same way it does in HTML--I don't know.
I hope this is clear. Any help?