find user's addon domain and subdomain folder path
Hello
Can someone help to find users addon dominn path and subdomain path using cpanel uapi ?
I tried to use documentation link but I am unable to find exact code.
Thank you.
-
Hello, Have you checked following documentations. cPanel API 2 Functions - AddonDomain::listaddondomains - Software Development Kit - cPanel Documentation 0 -
Thank you ! How can I get result using header( "Path" ); // Add the header. $list_addons = $cpanel->api2( 'AddonDomain', 'listaddondomains', array( 'dir' => 'domain', ) ); echo $list_addons ; footer(); // Add the footer. $cpanel->end(); // Disconnect from cPanel - only do this once. ?> IS this the correct way to use code? Please correct me if I am wong 0 -
print $cpanel->footer(); // Add the footer.
Hello, You'd need to adjust this line to output more useful information. Here's the link we provided in our plugin developers mailing list for anyone else browsing this thread with a similiar question: What's the difference between echo, print, and print_r in PHP? Thank you.0
Please sign in to leave a comment.
Comments
3 comments