I made the following command in php
$comando="C:\Python27\python.exe programa.py";
echo $comando;
in the python file
print resultado;
This result variable has the content formed in json
{
"algumacoisa":"algumacoisa"
}
When I do this from the command prompt:
python.exe programa.py
It returns the content correctly, but when I do it with php
php site.php
It only returns the last line of json which is just one
}