Skip to content

Exec Addsubdomain and save file #30

Description

When I exec script below, And php will show save file windows, How close it?
$cpanelusr = ''; //username cpanel
$cpanelpass = ''; //password cpanel
$domainroot = 'XXX.com.tw'; //root domain
$subdomain = 'TEST'; //sudomain
$xmlapi = new xmlapi('localhost'); //link cpanel (can use ip)
//create_subdomain($domain,$xmlapi); //
$xmlapi->set_output('array');
$xmlapi->set_port( 2083 ); //port cpanel
$xmlapi->password_auth($cpanelusr,$cpanelpass);
$xmlapi->set_debug(1); //output actions in the error log 1 for true and 0 false
file_get_contents($xmlapi->api1_query($cpanelusr, 'SubDomain', 'addsubdomain', array($subdomain, $domainroot,0,0, "/public_html/")));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions