Bo Larsson's Internet Server Software

Bo Larsson's Internet Server Software
All Contents Copyright 1997-2020 by Bo Larsson - Send questions or comments to: admin@bliss.seagull.net
Table of Contents
Last updated 18 Jan 97
Welcome!

Perl CGI Scripts

guestbook 970118 NEW!
classifieds 970115 NEW!
search 961211
table 961201
textrotate 961121
rotater 961119
navigate 961117
redirect 961111
pcounter 961110
mailsend 961110
yourhost 961110
youraddress 961110

Java Applets

jclock 961204 NEW!
jcounter 961114

Links to Other Sites

Fisher's CGI Talk NEW!
JemTek CGI C Library
Dream Catchers CGI Scripts
Web Engineer's Toolbox
cgi-lib.pl Home Page
Common Gateway Interface
CGI Made Really Easy
CGI Programmer's Reference
Matt's Script Archive
Netamorphix CGI Page
Selena Sol's Archive

table 961201

view the source

show me an example

This is a script that reads the contents of a text file and outputs it as a table. The text file should have its fields tab-delimited and its records return-delimited. The script will count how many fields there are and create an appropriate table.

But what's it good for?

Say, for example, that you have some information you would like to present to browsers of your web site, but you want to spiff it up a bit. How about putting the information into a table? Most browsers know tables. Also, what if that text file is always changing (maybe it's a log file of some sort) and you don't want to keep creating a new html file to display it, and you also don't want to just display the plain text file because it's extremely ugly. Well, you should get a few ideas from this table CGI script.