http user in php script



I once saw a code to show the username that logged in in a php script after
logging in with http authentification, I cant seem to find the code anywhere


.