|
1.
I'm creating a website, where a user signs up, and they get a homepage.
Right now, the format is
domain.com\homepage.php?user=username
but some sites have things like
domain.com\username
I was just wondering how this is done. I'd guess that a new folder is created for each user, am I correct, or can this be done through some code.
Are there any advantages / disadvantages to creating folders for everyone?
Aside from the files taking space, which wouldn't be much because I could just include the php code from elsewhere.
2.
Also, I'm allowing users to do their own CSS code, should I store it in a database, or create an external file for each one. I just thought there might be some security flaws in storing it in the database(some sort of injection).
|