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


Groups > comp.lang.php > #5488

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

From Marc Fenner <fenner.m@hotmail.com>
Newsgroups comp.lang.php
Subject Does PHP5 treat $_SERVER['PHP_AUTH_USER']) differently?
Date 2012-04-12 16:31 +0200
Message-ID <9uo7a4FifdU1@mid.individual.net> (permalink)

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

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

csiph-web