article

Wednesday, August 20, 2014

Running Python Scripts on Windows with Apache and Xampp

Running Python Scripts on Windows with Apache and Xampp

create a script like the following, and put it in c:\xampp\cgi-bin\tutorial_1.py

#!/Python27/python

print "Content-type: text/html"
print 
print "<html>"
print "<head>"
print "<title>Tutorial CGI</title>"
print "</head>"
print "<body>"
print "<h1>Phython!</h1>"
print "<p>Xampp</p>"
print "<p>Tutorial101</p>"
print "<p>Phython for web</p>"
print "</body>"
print "</html>"


URL = http://localhost/cgi-bin/tutorial_1.py

Related Post