PDA

View Full Version : Name In Address



Zat_AJ
07-21-2005, 02:57 AM
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

mwinter
07-21-2005, 06:09 PM
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

Zat_AJ
07-22-2005, 02:59 PM
Ok, well is there any toutorials on how to do this that you know of? :confused:

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

Thanks alot for the reply.

IanMarlowe
07-23-2005, 05:24 AM
talkin about php, does anyone know of a free host that supports PHP? I can't seem to find a good one.

Zat_AJ
07-24-2005, 02:08 AM
Also a good question...

mwinter
07-25-2005, 12:40 AM
Ok, well is there any toutorials on how to do this that you know of? :confused: 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

Zat_AJ
07-25-2005, 01:15 AM
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.

mwinter
07-25-2005, 01:39 AM
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

Zat_AJ
07-28-2005, 04:42 PM
Oh... ok... so in summery... I can't do it. Thanks alot for the help.