personal url

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
junjustkim
Forum Commoner
Posts: 44
Joined: Thu May 22, 2008 8:48 pm

personal url

Post 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
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Re: personal url

Post by mickd »

When they register, use the mkdir function.
mattpointblank
Forum Contributor
Posts: 304
Joined: Tue Dec 23, 2008 6:29 am

Re: personal url

Post 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
Post Reply