say I have index.php and I am including header.php, and at the same time I am including a global.php into index.php, shouldn't header.php also inherit the global.php file just because its included into index.php?
I have a function file that has a lot of vars, but when I include other pages into the index.php they don't inherit the script, any thing special i should do? I cannot include the function file into another file if its already included into the main index, (cannot redeclare) ..
last question, I have a weird problem with include paths,
normally, when you include() a page you do:
include("/home/public_html/page.php");
but for me that doesn't always work, I have to do:
include("http://www.mydomain.com/page.php");
what would cause this?, php v 4.2.3.