SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Evangelist ucahg's Avatar
    Join Date
    Apr 2001
    Location
    Sarnia, Ontario, Canada
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Email Address-esque domains.

    To see what I'm talking about, go to whatever@sitepointforums.com (or anyother domain). You will just be looking at the regular sitepointforms page, but the url will stay at whatever@sitepointforums.com/file.ext. It stays going from page to page.

    Anyway now that you know what I'm talking about, is there anyway to detect that and put it into a variable. I know you could get the domain name and search for the @ sign and split it and put what's before the @ sign into a variable, but is there any other way (such as it is automatically put into a variable)?
    Last edited by ucahg; Jun 21, 2001 at 17:14.

  2. #2
    SitePoint Evangelist ucahg's Avatar
    Join Date
    Apr 2001
    Location
    Sarnia, Ontario, Canada
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anybody?
    Love it? Hate it? Helpful? Useless?
    Use the rate button to let me know what you think of my post!

  3. #3
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well - that's probably going to be the craziest thing I'm gonna hear today (either that or its going to be a wild day!) . I've never heard of anyone putting a email address into their browser address bar - but I guess you can never forsee every crazy thing that a user might do.

    I guess that it you can extract it from $HTTP_HOST or $REQUEST_URI as you hint at. I would be suprised if there were any other environment variable that you could use - but it would not be the first time I have been suprised.

  4. #4
    SitePoint Addict zoordaan's Avatar
    Join Date
    Feb 2001
    Location
    NYC/Texas
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I heard something about this,(but I don't remember where) - using an email address to point to a website but I thought it was going to be available in the future not now.

  5. #5
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's actually not an email address. I think what he means is sort of like HTTP auth:
    userass@host

    Without the password.

    Try getting it from HTTP_AUTH_USER or someting similar--I don't remember it offhand.

    edit: vB thinks that, in the user pass @ host part, is a smiley, and then the three-letter word is blanked out. So it's really: user colon pass at_sign host
    Last edited by qslack; Jun 22, 2001 at 15:31.

  6. #6
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh you mean http://someone:someonespass@www.somdomain.com

    AS qslack just mentioned, it is a way to pass the username and password to the server to perform authentication without the pop up windows.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  7. #7
    SitePoint Evangelist ucahg's Avatar
    Join Date
    Apr 2001
    Location
    Sarnia, Ontario, Canada
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I was extremely tired, and trying to go to hotmail, I absent-mindedly typed in my email address . When I saw it still went to hotmail, my brain started to work and I was thinking of some possibilities that this could be useful.

    qslack, all you have to do is check Disable Smileys in this post


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •