Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5488 > unrolled thread

Does PHP5 treat $_SERVER['PHP_AUTH_USER']) differently?

Started byMarc Fenner <fenner.m@hotmail.com>
First post2012-04-12 16:31 +0200
Last post2012-04-12 18:36 +0200
Articles 3 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  Does PHP5 treat $_SERVER['PHP_AUTH_USER']) differently? Marc Fenner <fenner.m@hotmail.com> - 2012-04-12 16:31 +0200
    Re: Does PHP5 treat $_SERVER['PHP_AUTH_USER']) differently? Captain Paralytic <paul_lautman@yahoo.com> - 2012-04-12 07:56 -0700
    Re: Does PHP5 treat $_SERVER['PHP_AUTH_USER']) differently? Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2012-04-12 18:36 +0200

#5488 — Does PHP5 treat $_SERVER['PHP_AUTH_USER']) differently?

FromMarc Fenner <fenner.m@hotmail.com>
Date2012-04-12 16:31 +0200
SubjectDoes PHP5 treat $_SERVER['PHP_AUTH_USER']) differently?
Message-ID<9uo7a4FifdU1@mid.individual.net>
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

[toc] | [next] | [standalone]


#5491

FromCaptain Paralytic <paul_lautman@yahoo.com>
Date2012-04-12 07:56 -0700
Message-ID<085c559f-bd44-4048-9782-321ef1960fd8@r9g2000yqd.googlegroups.com>
In reply to#5488
On Apr 12, 3:31 pm, Marc Fenner <fenne...@hotmail.com> wrote:
> 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.
Surely your adaptations must have relied on something other than these
2 variables (since they were empty) and so there would seem to be no
reason (from what you have posted) why you could not continue to use
your adaptations and have the script working.

[toc] | [prev] | [next] | [standalone]


#5493

FromThomas Mlynarczyk <thomas@mlynarczyk-webdesign.de>
Date2012-04-12 18:36 +0200
Message-ID<jm70ah$im0$1@news.albasani.net>
In reply to#5488
Marc Fenner schrieb:
>   $_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.

I think these variables are only available when PHP is running as a 
module, but not when it's running as (Fast)CGI. Maybe that's why they 
didn't work before and do now.

Greetings,
Thomas

-- 
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web