From: Elsner (no email)
Date: Tue Jan 08 2002 - 05:10:47 EST
Hello,
I attach the CGI script stats_short.c which
generates some useful statistics.
Read the source for more information.
There is a section name
/* Edit from here ... */ until /* Do not edit from here ... */
where you can change database connection parameters (and
some German strings, if you like).
It will compile with this Makefile (on my Linux box), change
the path variables to suit your installation:
# Makefile
LIB=-L/usr/local/mysql/lib/mysql -lmysqlclient -lm -lc
INCLUDE=-I/usr/local/mysql/include/mysql
CC=g++
CGIBIN=/usr/local/apache/cgi-bin
all: stats_short
.c:
$(CC) $(LIB) $(INCLUDE) -o $* $<
install:
cp stats_short $(CGIBIN)/stats_short.cgi
--- Call it using: http://server>/cgi-bin/stats_short.cgi Frank
#-------------------------------------------------------#
Dipl.-Math. Frank Elsner
Universitaet Osnabrueck (University of Osnabrueck)
- Rechenzentrum - (Computing Center)
Albrechstrasse 28, AVZ
D-49076 Osnabrueck
Deutschland (Germany)
Tel. (Phone): ++49 (0)541/969-2343 Fax: -2470
E-Mail:
#-------------------------------------------------------#
|
|
|