Zadzwoń do Pythona z PHP i uzyskaj kod powrotu

exec('python blibble.py', $output, $ret_code);
Tired Tiger