Receive output of python script from PHP?
<p>I want to launch a python script similar to <a href="http://www.eventlet.net/doc/examples.html#web-crawler-example" rel="nofollow">this web crawler</a>, wait for it to finish, process the data in php, then return the results to the user.</p>

<p>From what I hear, getting the output from python is trivial, but the above script is doing stuff in parallel, so just printing stuff as it finishes won't give me any kind of usable structure.</p>

<p>What would you suggest to use to pass an array of html data from the python script to php? A temporary file? mysql? I have no experience whatsoever in python, so you'll need to be pretty explicit.</p>

<p>Cheers.</p>
