i run the python script bellow in the command line and it works fine, but when i execute it in a php file it returns an empty array.
python
import sys
id_input=sys.argv[1]
print id_input
php
<?php
$out="";
exec("python teste.py a ",$out);
print_r($out);
?>
output of php: array()
output in command line: a
Both files are in the same directory and i am using XAMPP in Vista OS to run them.