Great script but I need to modify the output.
What it produces is:
support.example.com Home/public_html/support
But what I need is:
support.example.com Home/public_html
I suspect this line could be edited but I do not understand the logic.
$request = "/frontend/$cpanel_skin/subdomain/doadddomain.html?rootdomain=$domain&domain=$subd";
Thanks, Preston