How can one create a new subdomain using a script? Creating a new database or database table is something I'm familiar with.
If this is not possible, how does About.com create all the subdomains they use. Is it manually, or some other way?
What exactly do you mean by subdomain? Just the entry in the DNS System or the whole handling of the subdomain (which is just a hostname).
You can set a wildcard DNS entry so every
Your Apache vhost needs to accept every hostname of the domain
Everything else is handled by .htaccess files using
If you are using cPanel you can use the xmlapi class https://github.com/CpanelInc/xmlapi-php.
You then invoke it like this: