Hi all.
I have been pulling my hair out as I have been trying to get this rather simple thing to work, and it isnt. Any ideas?
I have a class, and want to use the global $_SERVER['PHP_SELF'] in it but it keeps coming back with an error Parse error: parse error, unexpected T_VARIABLE
partial code example below:
class templateParser
{
var $template;
var $replaceArray = array("<PHP_SELF>" => $_SERVER['PHP_SELF'])
any ideas? I could pass it into the class, but I think that it is a stupid way of doing it.
Cheers