CGI with python help newbie
Amy G
amy-g-art at cox.net
Wed Mar 24 02:20:00 EST 2004
I have been doing some programming in python for a while now, but have
always used perl for cgi scripting. I would like to try using python
because of its ease of programming.
If I already have apache web server installed and have the python
interpreter running with no problems.
What is needed to get a python script working over my web server.
For example I have the following:
#!/usr/locla/bin/python
print "Content-Type: text/plain\n\n"
first, middle, last = 5, 7.5, 10
print "first:", first
print "middle:", middle
print "last:", last, "\n"
I would like it to print out to the browser:
5 7.5 10
Any help?
Thanks
More information about the Python-list
mailing list