A Script for Displaying the Environment : Introduction : CGI Web PYTHON TUTORIALS


PYTHON TUTORIALS » CGI Web » Introduction »

 

A Script for Displaying the Environment


#!c:/Python25/python

from os import *
from cgi import *

print "Content-type: text/htmlnn"
print

print "These are the environment variables:<br>"
for key, value in environ.items():
    print key, " = ", value, "<br>"



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo CGI Web
» Introduction