I am looking for a solution for develop user registration system with creating sub domain for each user, e.g.
My domain is
www.example.com
When a user creates an account he could be able to access that created account at
www.user_name.example.com
I am trying to do this in PHP.
What is the best approach to do this kind of login system?
If you know any tutorial(s) it will be great help for me.