Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exec Addsubdomain and save file #30

Open
ghost opened this issue Jul 12, 2016 · 0 comments
Open

Exec Addsubdomain and save file #30

ghost opened this issue Jul 12, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 12, 2016

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/")));

@ghost ghost closed this as completed Sep 30, 2016
@ghost ghost reopened this Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants