PHP - Username to Folder [SOLVED]
Posted: Sun Jun 11, 2006 10:51 pm
I know to use mkdir(); to make a folder but I want to do a little more that that.
This is what I want to do:
When a user signs-up, a folder is created at domain.com/profiles/[the username]
and a standard php file is copied there from domain.com/profiles/defaultprofile.php
but the file is renamed to index.php. After that is done I want to make another folder at
domain.com/~[username], and then create another php file, which has a header which redirects
to domain.com/profiles/[the username].... which if i need to make another default page I can, but
I don't know how to make it so that it would foward to the right directory.
How would I do this all...
This is what I want to do:
When a user signs-up, a folder is created at domain.com/profiles/[the username]
and a standard php file is copied there from domain.com/profiles/defaultprofile.php
but the file is renamed to index.php. After that is done I want to make another folder at
domain.com/~[username], and then create another php file, which has a header which redirects
to domain.com/profiles/[the username].... which if i need to make another default page I can, but
I don't know how to make it so that it would foward to the right directory.
How would I do this all...