I'd like to add Host Headers to an IIS from PHP. Is there a way to access the metabase from PHP or do I have to write a .NET command line tool and then invoke it from PHP?
Here's the background for the question. I have a Wordpress MU installation on Windows 2003/IIS6. The only way the setup will support subdomains (blog.mainsite.com) is by adding each subdomain to the site's Host Headers setting. Doing this manually every time a new subdomain is created is tedious and error prone, so I'm looking for a way to have it done through code.