note 75059 modified in function.get-current-user by danbrown
| From: | danbrown@php.net | Date: | Sat, 19 Jul 2008 23:53:49 +0000 |
| Subject: | note 75059 modified in function.get-current-user by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141810@lists.php.net to get a copy of this message | ||
The information returned by get_current_user() seems to depend on the platform.
Using PHP 5.1.1 running as CGI with IIS 5.0 on Windows NT, get_current_user() returns the owner of
the process running the script, *not* the owner of the script itself.
It's easy to test - create a file containing:
<?php
echo get_current_user();
?>
Then access it through the browser. I get: IUSR_MACHINE, the Internet Guest Account on Windows,
which is certainly not the owner of the script.
--was--
The information returned by get_current_user() seems to depend on the platform.
Using PHP 5.1.1 running as CGI with IIS 5.0 on Windows NT, get_current_user() returns the owner of
the process running the script, *not* the owner of the script itself.
It's easy to test - create a file containing:
<?
echo get_current_user();
?>
Then access it through the browser. I get: IUSR_MACHINE, the Internet Guest Account on Windows,
which is certainly not the owner of the script.
http://php.net/manual/en/function.get-current-user.php