I'm thinking about a site on which for every user account a PHP script will automatically create a subdomain entry. I want this to be a weblog site and the redirection if any should be completely transparent.
For example user john comes to the site and creates his account. john.example.com is automatically created. Then when john creates an entry in his weblog it can be referenced as john.example.com/archive/2004/04/23/entry_name/ and it will not visibly redirect but show his entry.
For the first step I need to know what the PHP script should add in which config files.