title: Run python script from php on webserver
body: <p>I have a free webspace hosted by altervista where i have one script python and one script php. What i want to do is call the python script using the php script. I googled for a solution and i found several questions about it, i tried different proposed solutions but no one worked for me.</p>
  
  <p>Here the php script code:</p>
  
  <pre><code>&lt;?php 
  
  $command = escapeshellcmd('test.py');
  $output = shell_exec($command);
  echo $output;
  
  ?&gt;
  </code></pre>
  
  <p>and here the python script code:</p>
  
  <pre><code>print("Hello")
  </code></pre>
  
  <p>When i run the php script nothing happens.
  What's wrong?</p>
  
  <p>Thanks</p>