[PHP] Re: Implement @-domains with PHP?

2002-02-13 Thread Christian Blichmann
Hi folks! To end the discussion of how my posting has to be understood, I will further explain my idea: In Germany there's a web-space provider called 1&1 puretec (http://www.puretec.de/). They offer a feature called @-domain: Every time a user enters something like http:[EMAIL PROTECTED]/pat

Re: [PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread val petruchek
TED]> Sent: Tuesday, February 12, 2002 9:06 PM Subject: Re: [PHP] Re: Implement @-domains with PHP? > "Peter Janett" <[EMAIL PROTECTED]> wrote in message > 022101c1b3ef$809cf450$4de70142@peters">news:022101c1b3ef$809cf450$4de70142@peters... > > $what_you_want

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Philip Hallstrom
> In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Christian Blichmann) wrote: > > > "Cc Zona" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > You can look over the environment vars available to you with a quick call > > > to phpinfo()

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote: > "Cc Zona" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > You can look over the environment vars available to you with a quick call > > to phpinfo() .

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
"Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You can look over the environment vars available to you with a quick call > to phpinfo() . Thanks for replying, but as Philip stated in his reply to my question its that the actu

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote: > My problem is much more trivial, how to retrieve the string the user > type into the address bar of his/her browser??? You can look over the environment vars available to you with a quick call to phpinfo()

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
"Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I don't think that string actually gets sent unless the browser receives a > 401 Auth Required (I think that's it) header. Any idea how this could be done without popping up the login dialog???

Re: [PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
"Peter Janett" <[EMAIL PROTECTED]> wrote in message 022101c1b3ef$809cf450$4de70142@peters">news:022101c1b3ef$809cf450$4de70142@peters... > $what_you_want = "$HTTP_HOST" . "$REQUEST_URI"; Well, thanks - but it didn't work for me (don't have the $REQUEST_URI variable set)... btw, my setup is: PHP 4

Re: [PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Peter Janett
; Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 12, 2002 10:54 AM Subject: [PHP] Re: Implement @-domains with PHP? > I don't think that string actually gets sent unless the browser receives a > 401 Auth Required (I think that's it) header. > > Even if you have

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Philip Hallstrom
I don't think that string actually gets sent unless the browser receives a 401 Auth Required (I think that's it) header. Even if you have that setup and put a page with phpinfo() in it you'll notice that none of the environment variables will look like the url you've got below. The browser pulls

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
Hello Again! "Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'd like to retrieve the "http://someReallyWeirdAtDomain"-part. > > > I think you misunderstood my question, my problem is not how to parse the URI, I discovere

[PHP] Re: Implement @-domains with PHP?

2002-02-11 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote: > Anybody got some code how to access the first part of > a URI (the string just before the @)? I don't want to use > HTTP-authentication and I'm using Win2k with IIS as CGI... > > Example: > http:[EMAIL PROTECTED]