Category : json

I am trying to convert xml to php but when I go run it, it’s telling me I’m missing something. I help on this is greatly appreciated. $previewData = array( ‘PreviewOrderRequest’ => array( ‘orderType’ => ‘IRON_CONDOR’, ‘clientOrderId’ => strval(time()), ‘Order’ => array( 0 => array( ‘Instrument’ => array( 0 => array( ‘Product’ => array( ‘callPut’ ..

Read more

its a special request that i’m stuck after alots of tentatives.. I have an array that i convert into xml document. $request = array ( ‘idUser’ => WEBCAMP_USER, ‘password’ => WEBCAMP_PASS, ‘language’ => $lang, ‘idSite’ => $idCamping, ‘returnSiteOnly’ => 0, ‘returnProduct’ => 1, ‘returnMediaObj’ => 1, ‘mediaDataType’ => url ); $camping_sejours = $ws->cpg_Context($request); $json = ..

Read more

I do this function to fetch users table data (using curl first time) and return it as JSON its seems like: function All_Users() { require_once("config.php"); $input = @file_get_contents("php://input"); $event_json = json_decode($input,true); $query=mysqli_query($conn,"select * from users"); $array_out = array(); while($row=mysqli_fetch_array($query)) { $array_out[] = array( "first_name" => $row[‘first_name’], ); } $output=array( "code" => "200", "msg" => $array_out); ..

Read more