The behavior i'm seeing is quite strange.
include_path = "/home/myHome/public_html";
when I try to include a file like this
include('/myfile.php');
it tries to get it from the system root, not from public_html.
However, if I go like this:
include('myfile.php');
it tries to include it from the current working directory.
Now the problem is, I have include files which include other files. SOOOOO the first file ALWAYS looks for the included file using the current working directory, but the working dir changes based on where the include is being called from.
search/index.php calls ../global/header.php. that works IF I access search/index.php directly, but if I try to include search/index.php from say /search/anotherDir/, it looks for header.php in /search/global/header.php.
I need a way to be able to do includes relative to root, but php doesn't seem to work that way.