title: Executing Prolog from SWI and using the output in PHP
body: <p>I have SWI Prolog working in my vm where I'm going to be working on a PHP/HTML website.  I've been following this guide: <a href="http://www.j-paine.org/dobbs/prolog_from_php.html#appendix" rel="nofollow">http://www.j-paine.org/dobbs/prolog_from_php.html#appendix</a> to set up my php file to receive the output from the executed prolog file.  The problem that I'm having is that it seems that the output from SWI's command line (which I'm executing from my bash terminal) isn't being captured as a standard output that I can get PHP to recognize.  So, in my terminal, when I execute SWI and a test prolog file, it writes out like I need it to, but I can't figure out how to capture that output to then use in PHP.</p>
  
  <p>Any ideas or suggestions would be really great.  Thanks!</p>