我尝试使用cpanel api创建park域,但它无法正常工作。
我的代码是:
require_once "xmlapi.php";
$cpuser = "username";
$cppass = "password";
$db_host = "IP";
$cpanel = new xmlapi($db_host);
$cpanel -> set_port(2083);
$cpanel -> password_auth($cpuser,$cppass);
$name_domain = $_POST['namedomain'];
$cpanel->api2_query('Park', 'park', array( 'domain' => $name_domain, 'topdomain' => 'exist_domain' ) );
api是HERE