title: How do i iterate through a python script output in php exec_shell?? and display it on browser?
body: <p>This is the the php script i have written inside a html page</p>
  
  <pre><code>&lt;?php
      echo "print php";
      $cs='python script.py';
      exec($cs,$out,$status);
      foreach($out as $value){
      echo "&lt;div&gt;&lt;p style=\"color:red;\"&gt;$value&lt;/p&gt;&lt;/div&gt;";
      }
      ?&gt;
  </code></pre>
  
  <p><strong><em>Browser displays no output</em></strong> Where am i going wrong?
  Could someone please guide me on how to iterate through the output array am fetching? My python script gives few lines of output which is much like a text file. Thanxxx in advance for the help!!!</p>