#!/usr/bin/python import sys import time # Following line causes error to be sent to browser # rather than to log file (great for debug!) sys.stderr = sys.stdout print "Content-type: text/html\n" print """ A page from Python

This page is generated by a Python script!

The current date and time is """ now = time.gmtime() displaytime = time.strftime("%A %d %B %Y, %X",now) print displaytime, print """
Well House Consultants demonstration """