I would like to create a registration page which takes user information and generates a user profile subdomain. Example www.UserName.Domain.com similar to posterous. I don't even know where to start, I'm guessing PHP forms with some server side scripts and something about wildcards... but thats just what i've turned up after several hours of googling...
I just starting off and not even sure of the best way to ask this question so thanks for you help.
First of all, make sure the domain (domain.tld - mydomain.com for example) goes to the folder with your PHP code.
Then on the PHP part simply use:
If you use: http://www.user.mydomain.com/ you will get:
which $urlParts[1] = your username
If you use: http://user.mydomain.com/ you will get:
which $urlParts[0] = your username