What I want to do is to create a web page for every user when they signup on my page.
For Example: http://www.someweb.com/username, and this will be their webpage.
I know that this can be done easily with mkdir() and other related functions, but the problem is that my root folder is not chmod 777 and I don’t want to chmod 777 this root folder because of security reasons.
What is the best way to do this when a user registers on my web page.
You don’t make physical directories for each user, you use URL rewriting. Take a look at this source:
HTML Source : HTML Tutorials, URL Rewriting