4ad1bf8dfdb9aabd6a4efe8df07b3c12 GetClients 1 John2 1 1 "; // URL to your Modernbill $url = "https://mydomainname.com/lib-modernbill/include/lib-mbapi/remote.php"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_VERBOSE,0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_POSTFIELDS, "input=".$xml); $data=curl_exec($ch); $curlError = curl_error($ch); if($curlError) { echo "Curl Error: ".$curlError."
"; } else { //Good call, show result header("Content-Type: text/xml"); print_r($data); } ?>