CMS implementation question: http://<url>/<userlogi
Posted: Tue Jun 19, 2007 8:08 pm
Hey all,
I've seen a lot of CMS that give registered users a "/username" location to the site (ie. myspace). How exactly is this implemented? Does the CMS create a new directory with the users name at the root of the site on the host? I can see how this could be implemented using the file system calls in PHP, however, it seems like this approach would clutter the site as the the registered user base grew to the millions.
So it would seem that perhaps there is a mapping system in place that maps the "/username" syntax to a php file w/ an argument, such as "index.php?username=username". How would such a mapping system be built?
Thanks
I've seen a lot of CMS that give registered users a "/username" location to the site (ie. myspace). How exactly is this implemented? Does the CMS create a new directory with the users name at the root of the site on the host? I can see how this could be implemented using the file system calls in PHP, however, it seems like this approach would clutter the site as the the registered user base grew to the millions.
So it would seem that perhaps there is a mapping system in place that maps the "/username" syntax to a php file w/ an argument, such as "index.php?username=username". How would such a mapping system be built?
Thanks