Member's profiles

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Tronox
Forum Newbie
Posts: 1
Joined: Fri Nov 19, 2010 8:44 am

Member's profiles

Post by Tronox »

I need some help on creating a user profile system. I already have register / login system. After registration each user should have his own page, which he can customize (change background colour, layout etc.) URL should be http://www.mydomain.com/username . I have no idea how to do this. Should I create a seperate folder for each user? Or is there another way?
Thanks
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Member's profiles

Post by Jonah Bron »

You can use url rewriting to map /users/username to, for example, /users/user.php?user=username. So when a user visits http://example.com/users/joe, the server sends back http://example.com/users/user.php?user=joe. There are lots of tutorials online:

http://www.google.com/search?q=php+url+rewriting
Post Reply