Results 1 to 9 of 9

Thread: Name In Address

  1. #1
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Name In Address

    Hi... This is the first time I've even been on the Dynamic Drive forums but fot the past few years my friends and I have been comming here for cool scripts and stuff.

    Despite that I am looking for something in paticular. I want to make a web page that acts like an invitation to a party.
    I was wondering if there was some script or something out there that I could do to make it so that I could have my address,
    ex. www.mysite.com

    ... and then have an ending that would put the name in the text on the page.
    ex. www.mysite.com/AJ.West

    ... and then the text on the site in the X would have my name.

    If this is confusing go to this site please:
    http://www.jhon.jacob.smith.isgay.com (The names in between the dots can be changed or more/less names can be added)

    The site is rather crude buy it is very much what I would like to do. Thanks so much for any help or advice you can give me.

    -Zat_AJ
    Last edited by Zat_AJ; 07-21-2005 at 02:00 AM.

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Zat_AJ
    I want to make a web page that acts like an invitation to a party.
    I was wondering if there was some script or something out there that I could do to make it so that I could have my address,
    ex. www.mysite.com

    ... and then have an ending that would put the name in the text on the page.
    ex. www.mysite.com/AJ.West

    ... and then the text on the site in the X would have my name.
    Yes, it is possible. In fact, if you have PHP it's very simple with a little tweaking of the idea. If you want it exactly in the way you describe, then if you have an Apache server you can use mod_rewrite (which is most likely how your example works). It depends on what you have available.

    By the way, the tweak I'm referring to is to use a URL like

      http://www.example.com/invite/AJ.West

    In this case, you just need a PHP script with the name invite.php, and the name will be accessible as '/AJ.West' from the $_SERVER['PATH_INFO'] property.

    Mike

  3. #3
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, well is there any toutorials on how to do this that you know of?

    Also, I wouldn't sapose you know where I can find this script?

    Thanks alot for the reply.

  4. #4
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    talkin about php, does anyone know of a free host that supports PHP? I can't seem to find a good one.
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  5. #5
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Also a good question...

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Zat_AJ
    Ok, well is there any toutorials on how to do this that you know of?
    You're unlikely to find any. URL rewriting with mod_rewrite is a very difficult topic, and not often an option for many users as much of its power comes from its use in the global or virtual host sections of the main server configuration.

    Also, I wouldn't sapose you know where I can find this script?
    When I said, "It depends on what you have available.", that was a cue for you to tell me what you have available, and to state exactly what you're after: is the tweak I suggested OK and do you have PHP, or do you want your original suggestion. For the latter, I don't see any way around modifying the server configuration, and you probably won't have permission to do that.

    Mike

  7. #7
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh... ok... so there's no chance in me doing this with my 5 mb web space that seems to be just plain http. I'm kinda a noob on the terms. It's not one of those sites that allows uploads like for forums and posting in guest books and stuff.

    Thanks anyway.

  8. #8
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Zat_AJ
    Oh... ok... so there's no chance in me doing this with my 5 mb web space that seems to be just plain http.
    You could do it with a client-side script, but the implementation becomes a little bit dirtier then.

    You would have URLs like:

      http://www.example.com/?AJ.West
      http://www.example.com/invite?AJ.West

    The former would mean you wouldn't have a home page besides this invitation, and it may be necessary to include an extension (.html) with the latter depending on how the server's been configured by your host.

    Mike

  9. #9
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh... ok... so in summery... I can't do it. Thanks alot for the help.

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
  •