I'm creating an updater for my app. What I did was get the file version and then encrypt it with a MD5 hash using Crypto.MD5DigestFromString(). Then I submitted the encrypted file version to my site using HTTP.Submit(). I used the POST method. The PHP file will return a string that tells the app that it is up-to-date or if it needs to update.
My question is how do I return a string to the app with PHP? Is this how you do it?
My question is how do I return a string to the app with PHP? Is this how you do it?
Code:
<?php $app_file_version=$_POST["file_version"]; $latest_file_version=md5("1.0.7.6"); if ($app_file_version!==$latest_file_version) { echo("updatenow"); } else { echo("okay"); } ?>
Comment