Sorry to bring up an incredibly old thread.
I figured since the subject is follow up on the original topic, why waste a new thread.
<?
include(".inc/config.php");
$xml = file_get_contents("php://input");
$xmlobj = simplexml_load_string($xml);
// Play with objects
$imei = $xmlobj->imei;
$code = $xmlobj->unlockcode;
$message = "
$xml
IMEI: $imei
Code: $code
";
mailt($to, $subject, $message, "From: $from");
?>
This is the e-mail I get.
Where $code and $imei are blank.
I'm just e-mailing myself so that I can see what exactly is being outputted.
Ideally I just want to have 2 usable variables ($imei and $code) from the xml response from the API server.
Help is appreciated.
Thanks,