note 14112 deleted from language.variables.predefined by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 18:50:32 +0000 |
| Subject: | note 14112 deleted from language.variables.predefined by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25194@lists.php.net to get a copy of this message | ||
Another useful variable is $REMOTE_USER which contains the username of a person authenticated
through htaccess.
One gotcha to watch out for with this one is referencing it in included files. It does not get
passed to included files, just the main page, so you have to pass it in to your included files as a
set global or as a function parameter.
[Editor's Note:
$REMOTE_USER is a global variable that is not
accessible inside a function definition unless
imported using the global keyword.
i.e.
function foo () {
global $REMOTE_USER;
//...
}
--zak@php.net]