- Oct 21, 2006
- 5,401
- 2
- 0
Hi guys,
I'm working on a website that will allow users to create an account / profile page and manage everything from there. The concept is similar to when you create a Myspace account - you should be able to simply give your friends a URL with your user name in it in order to view your profile. The site I'm working on is NOT a social networking site, just for the record.
I'm not sure how to go about setting this up. Right now, to access their profiles, users can go to www.website.com/pagename.htm?user_id=xxxxx. Essentially, I want them to be able to go to www.website.com/username, which will show the same information as if they went to the page itself and passed their user_id through the URL string. Furthermore, I may need the ability to keep that username in the URL as they visit other pages in their account. So, if they navigate to pagename2.htm, they should still see www.website.com/username for the URL. Should I be looking into symbolic links, some sort of directory structure, or something else entirely?
The web server is running Linux, Apache, and PHP. The actual usernames (and other account information) are stored in a MySQL database.
Thanks.
I'm working on a website that will allow users to create an account / profile page and manage everything from there. The concept is similar to when you create a Myspace account - you should be able to simply give your friends a URL with your user name in it in order to view your profile. The site I'm working on is NOT a social networking site, just for the record.
I'm not sure how to go about setting this up. Right now, to access their profiles, users can go to www.website.com/pagename.htm?user_id=xxxxx. Essentially, I want them to be able to go to www.website.com/username, which will show the same information as if they went to the page itself and passed their user_id through the URL string. Furthermore, I may need the ability to keep that username in the URL as they visit other pages in their account. So, if they navigate to pagename2.htm, they should still see www.website.com/username for the URL. Should I be looking into symbolic links, some sort of directory structure, or something else entirely?
The web server is running Linux, Apache, and PHP. The actual usernames (and other account information) are stored in a MySQL database.
Thanks.
