Quote:
Originally Posted by KuraFire
constants are CaSe SenSiTive. A define() is a creation of a CONSTANT, and thus don't treat it as a function (never add () after it), as well making sure you're using the exact same, case-sensitive name.
|
Thank you for clearing that up.
I have now noticed that since I do:
define('CURRENT_DIR', $_SERVER['DOCUMENT_ROOT']);
inside the include file that is outside of the directory that I am actually in, the value of CURRENT_DIR is the one that my header.php file is in... always.
Is there a way to go around this or would I have to specify the value of CURRENT_DIR inside the file that calls the header file? That would be a pain in the butt and would make the function kind of worthless for me.