say for instance i have a page saved in one of my subdirectories.
how would i enter the php include code on that page because it doesnt work the same as it does for the pages in my main directory.
for the pages that i have saved in the main directory, example(sitename.com/page.php), all i have to do is use this code:<?include($_SERVER['DOCUMENT_ROOT'].'/includes/header.php');?>
because my includes are also saved in a subdirectory. but that code doesnt work for the pages in subdirectories so how am i supposed to write the include for the subdirectory pages?
hopefully im making sense!