title: error on using exec() to call python script in browser
body: <p>I am trying to call a python script by php:</p>
  
  <pre><code>&lt;?php
      $a = exec("python ~/www/encrypt.py");
      echo $a;
  ?&gt;
  </code></pre>
  
  <p>I use terminal and <code>php index.php</code> command to see result and it works well but in a web browser it does not show anything. </p>
  
  <p><strong>Problem solved</strong> by full path >> <code>exec("python /var/www/encrypt.py");</code></p>