Current location: Hot Scripts Forums » Programming Languages » PHP » http://www.mysite.com/community/users/Joe


http://www.mysite.com/community/users/Joe

Reply
  #1 (permalink)  
Old 07-08-05, 03:30 PM
StickMan StickMan is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
http://www.mysite.com/community/users/Joe

Hi! i have a question. I have always wondered how people do stuff like

http://www.mysite.com/community/users/Joe

and that would pull up a profile for the user joe?

i know how to do somthing like http://www.mysite.com/community/users/?=Joe

does anyone know a good tutorial about this? or can someone give me a brief course on this type of thing?

also how can i make it, when users register, it makes a subdomain for them?
Reply With Quote
  #2 (permalink)  
Old 07-08-05, 03:48 PM
StickMan StickMan is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
something like this actually.. http://justcurio.us/WhoseYourDaddy
Reply With Quote
  #3 (permalink)  
Old 07-08-05, 05:12 PM
alabaster_lynch alabaster_lynch is offline
Wannabe Coder
 
Join Date: Mar 2005
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by StickMan
Hi! i have a question. I have always wondered how people do stuff like

http://www.mysite.com/community/users/Joe

and that would pull up a profile for the user joe?

i know how to do somthing like http://www.mysite.com/community/users/?=Joe

does anyone know a good tutorial about this? or can someone give me a brief course on this type of thing?

also how can i make it, when users register, it makes a subdomain for them?
The first url that you gave

http://www.mysite.com/community/users/Joe

shows that Joe is a directory under users while
http://www.mysite.com/community/users/?=Joe

is passing a variable Joe to the index file which probably a server side script that brings up the appropriate information from a database.
Reply With Quote
  #4 (permalink)  
Old 07-08-05, 11:30 PM
Hibame Hibame is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
I belive what you want is mod_rewrite to rewrite the url

You can problay check google for some explnations
Link1
Link2

I wish I could help more then that but I have never used it myself. But I think I'm gonna try right now
Reply With Quote
  #5 (permalink)  
Old 07-09-05, 05:01 AM
uksurfer uksurfer is offline
New Member
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Similar Question...

Hi, I am new to programming so please bear with me!

I am trying to get information displayed from a database to be used as a hyperlink to go to that page. i.e.

www.mysite.com/[nickname]

I can get the info to be shown on the page, but I can't get it to become a hyperlink..

www.mysite.com/$p_arr[NickName]

Wondered what code is needed.
Thanks


Quote:
Originally Posted by StickMan
Hi! i have a question. I have always wondered how people do stuff like

http://www.mysite.com/community/users/Joe

and that would pull up a profile for the user joe?

i know how to do somthing like http://www.mysite.com/community/users/?=Joe

does anyone know a good tutorial about this? or can someone give me a brief course on this type of thing?

also how can i make it, when users register, it makes a subdomain for them?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 06:54 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.