{"action":"closed","issue":{"url":"https://api.github.com/repos/CpanelInc/xmlapi-php/issues/30","repository_url":"https://api.github.com/repos/CpanelInc/xmlapi-php","labels_url":"https://api.github.com/repos/CpanelInc/xmlapi-php/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/CpanelInc/xmlapi-php/issues/30/comments","events_url":"https://api.github.com/repos/CpanelInc/xmlapi-php/issues/30/events","html_url":"https://github.com/CpanelInc/xmlapi-php/issues/30","id":165014338,"number":30,"title":"Exec Addsubdomain and save file","user":{"login":"superlevin","id":313569,"avatar_url":"https://avatars.githubusercontent.com/u/313569?v=3","gravatar_id":"","url":"https://api.github.com/users/superlevin","html_url":"https://github.com/superlevin","followers_url":"https://api.github.com/users/superlevin/followers","following_url":"https://api.github.com/users/superlevin/following{/other_user}","gists_url":"https://api.github.com/users/superlevin/gists{/gist_id}","starred_url":"https://api.github.com/users/superlevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superlevin/subscriptions","organizations_url":"https://api.github.com/users/superlevin/orgs","repos_url":"https://api.github.com/users/superlevin/repos","events_url":"https://api.github.com/users/superlevin/events{/privacy}","received_events_url":"https://api.github.com/users/superlevin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T07:45:01Z","updated_at":"2016-09-30T14:49:06Z","closed_at":"2016-09-30T14:49:06Z","body":"When I exec script below, And php will show save file windows, How close it?\r\n        $cpanelusr = ''; //username cpanel\r\n        $cpanelpass = ''; //password cpanel\r\n        $domainroot = 'XXX.com.tw'; //root domain\r\n        $subdomain = 'TEST';  //sudomain\r\n        $xmlapi = new xmlapi('localhost'); //link cpanel (can use ip)\r\n        //create_subdomain($domain,$xmlapi); //\r\n        $xmlapi->set_output('array');\r\n        $xmlapi->set_port( 2083 ); //port cpanel\r\n        $xmlapi->password_auth($cpanelusr,$cpanelpass);\r\n        $xmlapi->set_debug(1); //output actions in the error log 1 for true and 0 false \r\n        file_get_contents($xmlapi->api1_query($cpanelusr, 'SubDomain', 'addsubdomain', array($subdomain, $domainroot,0,0, \"/public_html/\")));"}}
{"actor":{"display_login":"superlevin"}}