Rynor
stay hungry
авторизация при safe mode
Уважаемые!
При включении safe mode получил проблему с basic authentification - перестала работать.
Читаю ман: Chapter 16. HTTP authentication with PHP
As of PHP 4.3.0, in order to prevent someone from writing a script which reveals the password for a page that was authenticated through a traditional external mechanism, the PHP_AUTH variables will not be set if external authentication is enabled for that particular page and safe mode is enabled. Regardless, REMOTE_USER can be used to identify the externally-authenticated user. So, you can use $_SERVER['REMOTE_USER'].
это я понял, что надо use
а вот как его надо use? примеры там по этой проблеме жутко лаконичные - их нет.
Заранее благодарю за помощь.
Уважаемые!
При включении safe mode получил проблему с basic authentification - перестала работать.
Читаю ман: Chapter 16. HTTP authentication with PHP
As of PHP 4.3.0, in order to prevent someone from writing a script which reveals the password for a page that was authenticated through a traditional external mechanism, the PHP_AUTH variables will not be set if external authentication is enabled for that particular page and safe mode is enabled. Regardless, REMOTE_USER can be used to identify the externally-authenticated user. So, you can use $_SERVER['REMOTE_USER'].
это я понял, что надо use
а вот как его надо use? примеры там по этой проблеме жутко лаконичные - их нет.
Заранее благодарю за помощь.