WWW statistics using python (3/3)

Paul Sijben (sijben@cs.utwente.nl)
Fri, 1 Jul 1994 10:12:31 GMT

HTMLsupport.py
--------------
import sys
import posix
from string import *

def IMG(fd,fn):
fd.write("<IMG SRC=\""+fn+"\">")
def TITLE(fd,string):
fd.write("<TITLE>"+string+"</TITLE>\n")

def H1(fd,string):
fd.write("<H1>"+string+"</H1>\n")

def H2(fd,string):
fd.write("<H2>"+string+"</H2>\n")

def PRE(fd,string):
fd.write("<PRE>"+string+"</H2>\n")

def A(fd,string1,string2):
fd.write("<A "+string1+">"+string2+"</A>\n")

def P(fd):
fd.write("<P>\n")

def HR(fd):
fd.write("<HR>\n")

def PHR(fd):
fd.write("<P>\n<HR>\n")