Page 1 of 1

personal url

Posted: Wed May 06, 2009 8:57 pm
by junjustkim
hi to all

I want to create a personal url for every user registered. Once the user registered then I will dynamically create a folder respectively. My goal of this is, if every user I will create their own folder so they could upload and download their files.

example

user register : john_cruz

his personal url is
http://www.example.com/john_cruz

any suggestions would greatly appreciated.

thanks in advance


Tirso

Re: personal url

Posted: Wed May 06, 2009 9:02 pm
by mickd
When they register, use the mkdir function.

Re: personal url

Posted: Thu May 07, 2009 7:17 am
by mattpointblank
You don't have to actually create a folder, you can just use apache's URL rewriting in a .htaccess file to give the illusion they have a folder - site.com/john could actually map to site.com/users.php?username=john