title: I am trying to call a python script recommend.py from my PHP file. Is it the correct way ? No results are obtained
body: <p>The four parameters values are taken from the database. The python script has the algorithm to make recomeendation based on the four paramters specified.</p>
  
  <pre><code>&lt;?php
  include('main.php'); 
  $lat = $_POST['lt'];
  $lon = $_POST['ln'];
  $uid = $_POST['id'];
  $rad = $_POST['rd'];
  #$lat = "28.674558";
  #$lon = "77.274202";``
  #$uid = "1";
  #$rad = "1";
  $outs = 'python recommend.py' . $uid . ' ' . $lat . ' ' . $lon . ' ' . $rad;
  
  $output = shell_exec($outs);
  
  echo $output;
  
  ?&gt;
  </code></pre>