O to kod:
$sCommand = '<?xml version="1.0"?> <interface version="1.0"> <command> <check> <domain> <name>' . $_POST['domena'] . '</name> </domain> </check> </command> </interface>'; $rSession = curl_init('127.0.0.4'); curl_setopt($rSession, CURLOPT_HTTPHEADER, array('Host: xxx')); curl_setopt($rSession, CURLOPT_POST, 1); curl_setopt($rSession, CURLOPT_POSTFIELDS, $sCommand); $sResult = ; // formatowanie wyniku curl_close($rSession); print_r($sResult);
i Chce sformatowac wynik który jest wyzucany w xml. Moze ktos pomóc jak zacząć. Bardzo prosze o pomoc.