Previously I used the IIS server as PHP server. Currently, it is the apache.
On IIS I could access to the variable $_SERVER [\'REMOTE_USER\'] which retu
$_SERVER [\'REMOTE_USER\']
You can only access the remote user if Apache has actually authenticated the user, check the apache auth howto.