I have a python script which do some processing over images and gives me text, the script is running fine in the console. Now i want to display the same text by using php in
Make sure $f is an array before calling exec(), then print_r($f) should do the trick
$f
exec()
print_r($f)