Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Marc Fenner Newsgroups: comp.lang.php Subject: Does PHP5 treat $_SERVER['PHP_AUTH_USER']) differently? Date: Thu, 12 Apr 2012 16:31:33 +0200 Lines: 15 Message-ID: <9uo7a4FifdU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain X-Trace: individual.net +EWzpNy9bJEjE0H0JQ5OXA00uPhVWuU6MjH5xDDR7uQu8GKuMD Cancel-Lock: sha1:LDQCIArDWs/g2oRg54Et7FrGiZM= User-Agent: Web-News v.1.6.4 (by Terence Yim) Xref: csiph.com comp.lang.php:5488 Hi guys, I was working on an old script last night, which was partly written by a friend. It seems he used these variables: $_SERVER['PHP_AUTH_USER']) $_SERVER['PHP_AUTH_PW']) However, these variables used to be empty when running on PHP4, so I had to adapt the script a little which worked pretty fine. Moving to PHP5, I suddenly see values in these variables after performing the usual HTTP AUTH. It now seems I have to undo my adaptions to make the script work. Did they change anything about these variables from PHP4 to PHP5? I cannot find any good documentation on that change (as it appears to be).. Thank you for any ideas! Marc