Adding virtual host
How can I add/edit Apache VirtualHost from PHP , of course including registring new subdomain or editing it. I m sure that it's possible but I don't know exactly how to do it in PHP. I tried to edit the apache confi file directly (demand much parsing) and changing the zone file of the dns (parsing too). Please help me with the best method you know please.