#!/Python27/python
print "Content-type: text/plain\n\n"
print "Hello world"
$python = exec('python e:\xampp\cgi-bin\test.py');
echo "Python is printing: " . $python;
print "Hello world"
<?php
$python = shell_exec('C:\Python27\python.exe e:\xampp\htdocs\scripts\test.py');
echo "Python is printing: " . $python;
?>