Call Python From PHP And Get Return Code

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

Source

Also in PHP: