Mega Code Archive

 
Categories / Python Tutorial / CGI Web
 

A Script for Displaying the Environment

#!c:/Python25/python from os import * from cgi import * print "Content-type: text/html\n\n" print print "These are the environment variables:<br>" for key, value in environ.items():     print key, " = ", value, "<br>"