Marius Burkard
2016-05-23 9376d70f0ccba49ead95ef47f0ecba568ea2d6e1
commit | author | age
413d3b 1 <?php
T 2
b1a6a5 3 require 'soap_config.php';
413d3b 4
T 5
6 $client = new SoapClient(null, array('location' => $soap_location,
b1a6a5 7         'uri'      => $soap_uri,
MC 8         'trace' => 1,
9         'exceptions' => 1));
413d3b 10
T 11
12 try {
b1a6a5 13     if($session_id = $client->login($username, $password)) {
413d3b 14         echo 'Logged successfull. Session ID:'.$session_id.'<br />';
T 15     }
16
17     //* Parameters
18     $id = 9;
19
20
21     $affected_rows = $client->dns_ptr_delete($session_id, $id);
22
23     echo "Number of records that have been deleted: ".$affected_rows."<br>";
b1a6a5 24
413d3b 25     if($client->logout($session_id)) {
T 26         echo 'Logged out.<br />';
27     }
b1a6a5 28
MC 29
413d3b 30 } catch (SoapFault $e) {
T 31     echo $client->__getLastResponse();
32     die('SOAP Error: '.$e->getMessage());
33 }
34
35 ?>