Moderators Kyle Posted July 2, 2012 Moderators Report Share Posted July 2, 2012 Hey Guys, I have a question when it comes to developing an ACARS Software. How should I send the data and receive back from the php file. I seen posts about ACARS development that I should send the data and receive the data in complete XML. Should I do this way or is there a better way than XML? Thanks! Cheers! Quote Link to comment Share on other sites More sharing options...
Strider Posted July 2, 2012 Report Share Posted July 2, 2012 Not really, XML seems to be the only good way of doing it Quote Link to comment Share on other sites More sharing options...
Tom Posted July 2, 2012 Report Share Posted July 2, 2012 You would send data to the php file in POST variables... I don't know what language you're using but I expect there isn't a decent way to decode JSON (but it's super easy to encode in php) - so XML :/ Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted July 2, 2012 Author Moderators Report Share Posted July 2, 2012 Thanks Guys! I still use XML on the ACARS. BTW, it's written in C#. Quote Link to comment Share on other sites More sharing options...
Tom Posted July 2, 2012 Report Share Posted July 2, 2012 Oh ok, I would use JSON then - it's super easy to encode in php from an array: echo json_encode($array_of_things); and you can use this to decode it in your application. Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted July 2, 2012 Author Moderators Report Share Posted July 2, 2012 Thanks Tom! Will have a look. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.