I want to allow the users of my PHP application to create their own subdomains on my server.
For example, I currently operate example.com and for my premium users I manually create a subdomain like bob.example.com or jack.example.com, I point the user subdomains to the same server that runs my application which has a wildcard SSL cert.
What I want to do is have a system that will automatically create subdomains of my domain for my users when they register on my application but I'm not sure where to start on this. I'm assuming that this can't be done purely in PHP but I'm hoping someone can point me in the right direction for what I want to do here.