The simple answer is something like "it depends on what you're trying to do." One solution might be to have php make a change to the apache virtual hosts file and create the appropriate directories on the server. One method that we use is for a single page being listed as blahblah.thedomain.com. In that case, we have a custom 404 page which does all the switching work for us. The page examines the URL that the user was attempting to visit and swaps out the content based on that. -- jon ------------------- jon roig web developer email: jon@xxxxxxxxxxxxxxxxxx phone: 888.230.7557 -----Original Message----- From: Sudeep Sarath [mailto:sudeepfiles@xxxxxxxxxxx] Sent: Thursday, March 18, 2004 2:33 AM To: php-windows@xxxxxxxxxxxxx Subject: Domain name Hello, How to create domain name using PHP. For example once we create an account in intranets.com, we get a url as accountName.intranets.com. How this can be done in PHP in linux environment. Thanks John Yahoo! India Promos: Win a trip for 2 to Britain. Click here. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.611 / Virus Database: 391 - Release Date: 3/3/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.611 / Virus Database: 391 - Release Date: 3/3/2004 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php