I have recently set up PHP 4 on a windows 2000 server running iis using the windows installer package. If i create a page:
<?php
phpinfo();
?>
and navigate to the page I get the expected output. If i create a page with:
<?php
$user = $_SERVER['LOGON_USER'];
echo $user;
?>
and navigate to the page I get a page with my domain//username. Alls good so far, now if I CTRL F5 and refresh the browser page I then get error 404 page not found. Clearly the page is there because I could view it initially. Any ideas why the server would no longer be able to see the page AFTER a refresh? Is this issue anything to do with the doc_root variable in php.ini? I think I must have done something stupid wrong. I am new to php and (annoyingly) when I use asp request.servervariables("logon_user") I can get the info no problem (and refresh the page as many times as I like) but the application I wish to use is written in php and I need to be able to authenticate the user.