<?php$client = new SoapClient(null, [ 'location' => 'http://regtons.com/soap/cmd.php', 'uri' => 'http://regtons.com/soap']);$login_input = [ 'login' => 'demo', 'password' => 'demouser'];$login_output = $client->__call('Login', ['data' => $login_input]);$input = [ 'ssid' => $login_output['data']['ssid'], 'webhosting' => 'NGHTFH'];$output = $client->__call('Info_Web_Hosting', ['data' => $input]);print_r($input);print_r($output); $input: Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [webhosting] => NGHTFH ) $output: Array ( [status] => ok [webhosting] => NGHTFH [expire] => 2019-02-02 [period] => 6 [domains] => Array ( [0] => domain.or.af [1] => domain2.or.af ) [plan] => 6 [name] => Basic [type] => normal [max_domains] => 1 [capacity_mb] => 10000 [avail_web] => 1 [avail_mysql] => 1 [avail_email] => 1 [php_versions] => Array ( [0] => 5.3 [1] => 5.4 [2] => 5.5 [3] => 5.6 [4] => 7.0 [5] => 7.1 [6] => 7.2 ) )
<?php$client = new SoapClient(null, [ 'location' => 'http://regtons.com/soap/cmd.php', 'uri' => 'http://regtons.com/soap']);$login_input = [ 'login' => 'demo', 'password' => 'demouser'];$login_output = $client->__call('Login', ['data' => $login_input]);$input = [ 'ssid' => $login_output['data']['ssid'], 'webhosting' => 'NGHTFH'];$output = $client->__call('Info_Web_Hosting', ['data' => $input]);print_r($input);print_r($output);