note 113034 added to function.get-current-user

From: Date: Wed, 21 Aug 2013 05:06:02 +0000
Subject: note 113034 added to function.get-current-user
Groups: php.notes 
Request: Send a blank email to php-notes+get-196035@lists.php.net to get a copy of this message
Since this only returns the file owner and not the actual user running the script, an alternative in Linux is: <?php $current_user = trim(shell_exec('whoami')); ?> ---- Server IP: 69.147.83.199 Probable Submitter: 199.126.192.221 ---- Manual Page -- http://php.net/manual/en/function.get-current-user.php Edit -- https://master.php.net/note/edit/113034 Del: integrated -- https://master.php.net/note/delete/113034/integrated Del: useless -- https://master.php.net/note/delete/113034/useless Del: bad code -- https://master.php.net/note/delete/113034/bad+code Del: spam -- https://master.php.net/note/delete/113034/spam Del: non-english -- https://master.php.net/note/delete/113034/non-english Del: in docs -- https://master.php.net/note/delete/113034/in+docs Del: other reasons-- https://master.php.net/note/delete/113034 Reject -- https://master.php.net/note/reject/113034 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#196035) next »