Re: [PHP] Re: How reliable is the 'user' in http://user@somehost.com/???

2002-01-09 Thread Jason Wong
On Thursday 10 January 2002 03:38, Philip Hallstrom wrote: > > > > So my questions are these: > > > > - how reliable is that syntax for passing data around? > > > > - is there a reason PHP can't use that for storing $SID? If you compile php using "--enable-trans-sid" then it will automatically

[PHP] Re: How reliable is the 'user' in http://user@somehost.com/???

2002-01-09 Thread Philip Hallstrom
In looking into this more, while I can put stuff there, PHP doesn't pick it up (or perhaps the browser doesn't send it) unless you do something like this: if ( !isset($PHP_AUTH_USER) ) { Header("WWW-Authenticate: Basic realm=\"Foo\""); Header("HTTP/1.0 401 Unauthorized"); exit; } B