This is the the php script i have written inside a html page
<?php
echo "print php";
$cs='python script.py';
exec($cs,$out,$status);
foreach($out as $value){
echo "<div><p style=\"color:red;\">$value</p></div>";
}
?>
Browser displays no output 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!!!