Hi all I'm having trouble with register globals. In the ini file it tells you to code around this and have it switched off. But when I switch it off in the ini - I start a session but cannot pick up $REMOTE_USER which I need to log. Could some one help me with the syntax here? Thanks
$_SERVER['REMOTE_USER'] I think
Thanks mate - but I'm now getting an undefined index error... Any other help appreciated..
right, it's not the $_SERVER one then :rolleyes:
try this at the begining of your file
global $REMOTE_USER;
This should register the global Rob
WHERE is $REMOTE_USER coming from? You might want to read: http://www.php.net/manual/en/reserved.variables.php if you havent already done so.
Thanks guys! Works a treat - and now I think I understand a little more about session vars!🙂