title: Connecting Prolog File with PHP file
body: <p>I have a Prolog code <code>data.pl</code>, and I need to use it from a PHP file. From my search in internet, I found this:</p>
  
  <pre><code>exec('start &lt;path/to/prolog&gt; -f data.pl -g elem(a,[a,b])', $output)
  </code></pre>
  
  <p>I've tried this with <code>Shell-exec()</code> and <code>system()</code> commands, but they do not work either. I've also tried to correct the directory paths, and move <code>data.pl</code> to <code>path/to/prolog</code> folder, and still no result. Can anybody help me on this issue?</p>