title: DirectAdmin create subdomain programmatically using PHP
body: <p>I created subdomain in DirectAdmin using his admin panel. But I want to do the same from PHP.
  I have to add section to the <code>httpd.conf</code> and create folder in <code>public_html</code> folder. And then add to DNS. But I have to do using PHP or using DirectAdmin API? Because I don't know if there are any other places where I have to add information about my new subdomain.
  For example in this folder:</p>
  <pre><code>/usr/local/directadmin/data/users/admin/domains/mydomain.subdomains
  </code></pre>