Hello there, this could be something very simple or something that my weary eyes cannot figure out the obvious.
I have my header.inc.php file in the includes folder.
When I include this file for a file within a subfolder (newdesign) using the following, it works like a charm.
include_once($_SERVER['DOCUMENT_ROOT'] .'/newdesign/includes/header.inc.php');
However, if I am using this for a file within another subfolder (forms) it is not working.
Directory structure is as below:
root -> newdesign -> includes (works fine here)
root -> forms -> and a php file in here (fails to work here)
Where have I gone wrong? any ideas please?
Regards
Melwyn