Running a Python script on a PHP server
<p>I am running a nginx web server, along with PHP-CGI.</p>

<p>I would like to know if it is possible to execute a Python script inside PHP pages, allowing both languages to be combined. I've attempted it briefly but it didn't work, so I'm not sure how I would do this. Here are the two files I used:</p>

<p>index.php</p>

<pre><code>&lt;body&gt;

    &lt;p&gt;Hello! Here is a message: &lt;?php exec('python hello.py'); ?&gt;&lt;/p&gt;

&lt;/body&gt;
</code></pre>

<p>hello.py</p>

<pre><code>print 'Hello World!'
</code></pre>

<p>Any clues would be appreciated.</p>
