How do we determine which user the php script is running under when I run the script on server? Is it running under the same user as apache or phpmyadmin by chance? My quest
Use this:
$_SERVER['REMOTE_USER'];
this variable may or may not be set.