title: Running PHP from Java
body: <p>I am trying to run the following from java file.<br>
  I am trying to display the php version and later will change to run php files. </p>
  
  <pre><code> Process p = Runtime.getRuntime().exec("cmd /C PHP/php.exe -v");
   BufferedReader in = new BufferedReader(new InputStreamReader(
                  p.getInputStream()));
          String line = null;
          while ((line = in.readLine()) != null) {
              System.out.println(line);
          }
  </code></pre>
  
  <p>When I run the program, there is no error. but console is not displaying anything :(<br>
  Thank you.</p>