4
votes
Accepted
How to make get_current_user() return the same user as $_SERVER['AUTH_USER']?
PHP fixed a fifteen year old bug. You should update your script.
It should not return the logged in user. It should return the owner of the script file.
From php.net/get_current_user
get_current_user(...
- 5,168
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
permissions × 3612linux × 677
windows × 354
apache-2.2 × 337
ubuntu × 261
active-directory × 248
security × 245
file-permissions × 237
php × 161
windows-server-2008 × 155
centos × 147
mysql × 121
ftp × 118
windows-server-2003 × 115
ssh × 109
access-control-list × 108
ntfs × 106
nginx × 101
chmod × 99
samba × 94
windows-server-2008-r2 × 91
groups × 88
users × 86
iis × 85
user-permissions × 85