|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Can anyone tell me how does this url work?
Hi
http://community.webshots.com/user/username Does anyone know how does this kind of url work? By enter their own username, he/she would be able to view their own gallery? & any form of changes he/she made would only affect their own gallery only? Thanks |
|
#2
|
||||
|
||||
|
community is a subdomain of webshots.com, in the server there is a folder called user, and in ther folders with the names of the usernames, every page is completely independent from the rest, and so the changes are for that page only.
Another way of doing it is to tell the webserver to look at the url and execute a cgi script (or program) that gives the output depending on the value of username. Does this answer your question? |
|
#3
|
||||
|
||||
|
yes i do now...but if i wish to implement something like this onto my website, which methods is more advisable; first or the second using cgi script.
|
|
#4
|
||||
|
||||
|
Quote:
That'll depend on the access you have to the server. If you have full control over the server, the second option would seem better, but you'd have to edit some config files in the server. If the server is just hosting you and can't alter the config files, I'd recomend the second, or http://community.webshots.com/user?=username being user a CGI script if you can do that. There are probably other options though. |
|
#5
|
||||
|
||||
|
I believe i had to go for user?=username, since the server would be hosting me...
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Can anyone tell me how does this url work? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|