- Code: Select all
$pythonCommand="/opt/python3/bin/python3 palina.py $palina";
//echo "command=$pythonCommand result=$result";
$resultData = json_decode($result, true);
the python code itself is very simple.
Yet when I run the python script from the command line it is very fast, while if I execute it from inside the php script, the php script gets extremely slow. In one server it even retuns without waiting the python scripts to complete.
The examples are on Debian and CentOS:
Any idea about what it might be and how to fix it?