Good day. I am writing a Java application, I mainly write in PHP, Java is a bit far for me, but I need to get the value from the php script in a Java application. The essence of this. There is a file, for example check.php:

$version = '1.0'; $update = true; if($update == true) { switch($_GET['do']) { case 'version': echo $version; break; default: die('Ошибка! Запрос не может быть обработан'); break; } } 

You need to get the text in a Java application with localhost / check.php? Do = version and compare it with what will be specified in the application itself. If you give an example on pyhe, then something Tipo:

 if($version > $app_version) { $update = true; } else { $update = false; } 

Could not find anything in Google, can anyone be able to tell which way to even look.

  • Look toward the HttpURLConnection (you have a GET request). - post_zeew
  • Quercus is Caucho Technology's 100% Java 5th PHP implementation released under the Open Source GPL license quercus.caucho.com - Sergey

0