Execute Python program using PHP
<p>Can I simply execute Python program using PHP like this? (in a browser)</p>

<pre><code>exec("python myProgram /Applications/MAMP/htdocs/somefile.xml");
</code></pre>

<p>or like this:</p>

<pre><code>exec("/path/to/python path/to/myProgram /Applications/MAMP/htdocs/somefile.xml");
</code></pre>

<p>Is any of this method correct?</p>

<p>If not, what should be the right way to do it?</p>

<p>Thanks</p>
