Can I do that thing that twitter and many other sites do where a url shows a users page.
www.mysite.com/the_user_name
In php... or how does one do it?
Can I do that thing that twitter and many other sites do where a url shows a users page.
www.mysite.com/the_user_name
In php... or how does one do it?
Look into how to use the mod_rewrite module in .htaccess.
Here's some ALA goodness:
The easiest way that I know of is to create a .htaccess file for the website with the RewriteEngine turned on.
For example
RewriteEngine On
RewriteRule ^(.+) /index.php?user=$1
Do a google search for .htaccess and RewriteEngine to get a better grasp of the process or creating an .htaccess file.
The easiest method would be to use mod_rewrite
in Apache (as opposed to doing it in PHP). Here's a good beginner's guide.