I have the following constant defined in my PHP script:
define("MODULE_PATH", "D:\\modules\\");
Whenever I try and assign the constant to a variable or as a function argument, I get a PHP parse error (with no explanation).
var $jim = MODULE_PATH;
var $fh = fopen(MODULE_PATH . "module1.xml");
Both above lines throw the parse error. I even tried using a variable instead of a constant and the error is still thrown. If I just echo the constant, it works fine but any assignment of the constant throws the parse error.
I'm almost to the point of tearing my hair out! Anyone know what the problem is here?