Portal Home > Knowledgebase > Articles Database > How to generate subdomains automatically with custom php/mysql script?


How to generate subdomains automatically with custom php/mysql script?




Posted by ericmn, 06-02-2007, 04:23 AM
This is for the blogging website. Getting the picture?.. Any comments and suggestion are appreciated!!! Thanks Last edited by ericmn; 06-02-2007 at 04:28 AM.

Posted by ThatScriptGuy, 06-02-2007, 12:44 PM
You need to look up wildcard dns

Posted by brendandonhu, 06-02-2007, 02:44 PM
If you're using cPanel, I have a class that can create subdomains: http://www.phpclasses.org/browse/package/3534.html You could also use mod_rewrite for this.

Posted by WO-Jacob, 06-02-2007, 04:00 PM
Though to do that you'd need to wildcard the apache ServerAlias as it wouldn't know to pass it along unless on dedicated IP.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Nameserver lookup (Views: 495)