I d like to know about the possibility of creating subdomains using php . Even an alternative would help until it helps to have the url format, [url]http://subDomainOrAlias.domain.com[/url]
@svidgenSep 09.2010 — #The answer is probably yes.
Do you want a PHP script that will update DNS records for you? Or, do you want a PHP script that will "forward" HTTP requests to the appropriate files/scripts based on the HTTP Host header?
If you're looking for the 1st option ... umm ... find a DNS service with a nice API and let us know how it turns out ?
@GUIRauthorSep 10.2010 — #Thanks for the info.. I will try for both ? . Btw would you be able to post a sample or link to a code sample how wild card host
@svidgenSep 10.2010 — #Set up a wildcard host -- ask your hosting provider for help with their DNS control panel if you're not sure how to do this. And then start with something like this: [code=php]<?php $valid_hosts = array( 'host1', 'host2', 'host3' );