php call python without exec permission
<p>My assigment requires me to run a python file through webpage. I tried calling this php page through ajax</p>

<pre><code>if ( !empty($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' )
{
   exec("rm index.*");
   print exec("wget -O index.html http:    markets.usatoday.com/custom/usatoday-com/html-mktscreener.asp");
   print exec("python hw7-9.py index.html");
   print "Done!";
}
else
{
   print "Nice try!"; //someone is trying to manually run
}
</code></pre>

<p>However I just realized that I don't have exec function permissions (after trying echo exec('whoami'). I chmod the file to 777.</p>

<p>I need to someone run the python script through some sort of ajax call. I am running on an afs system with SunOS. </p>
