Hi All.
i am trying to use $_SERVER['LOGON_USER'']; for an intranet within a domain.
i am using active directory.
in IIS 6 i have removed annonymous login and and checked integrated windows authetication. thats all i have checked in that window.
if i remove this check box.... so that no check box is ticked at all then rightly so i cannot access the virtual directory pages at all. when i recheck it i can. so it seems the authentication is working. however, i can not get the login name to display.
heres the code i used in a file called test.html
<?php
$dave = $_SERVER['LOGON_USER''];
echo $dave;
?>
can anyone shed any light at all as to why this doesn't display?
thanks in advance.... especially if ive been really stupid.