title: How to run ruby file from php code
body: <p>tried these commands</p>
  
  <pre><code>exec("ruby helloword.rb");
  system ("ruby helloword.rb");
  </code></pre>
  
  <p>Running php on windows server 2012R2
  I just want the ruby class to run as it will read and write results from text file and than i can user those text files.
  Is there any simple way to get this done.
  Tried almost everything on stackoverflow. So please dont mark this as duplicate. </p>