[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Help with simple CGI.



I use this cgi Scrip for my counters...
It's both a standard and a Java
It works on a RAQ 3, RAQ  Zuse and other Linux boxes

These links will give you an idea of what it does and how to set it up.

http://www.bagpipes.net/cgi-bin/digits/   What It looks Like and digits....

http://www.chami.com/counter/classic/info/setup/   How to set it up

http://www.chami.com/counter/classic/   It's Home Page

If you have any more questions let me know


Franklin S. Werren,  http://www.bagpipes.net/email.shtml    www.bagpipes.net
Modem Madness Ringmaster at www.madbbs.com/webring/
ICQ 8556386 or fswerren46 on AOL's IM

Frank's Radio, P.O. Box 990, Sherman NY 14781-0990

For the best ISP in Chautauqua County NY and Warren Co. Pa
go to www.madbbs.com    They treat you right.




----- Original Message -----
From: "Michael Aronoff" <ma@xxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 26, 2000 8:01 PM
Subject: [cobalt-users] Help with simple CGI.


> I am trying to use a simple counter CGI on my raq3 but when I run it I get
> an error that comes up in place of the result in the screen: The server
> encountered an internal error or misconfiguration and was unable to
complete
> your request.
>
> It is a very simple server side include (<!--#exec cgi="counter2.cgi"-->)
> and I have it running on other web hosts.  But I am moving gall my sites
to
> a Raq3 and CGI is giving me fits. Oh and is it possible to make server
side
> includes run just from an .html page rather than having to specify .shtml
> which is a pain if you want to do the SSI on you homepage.
>
> Thanks in advance.
>
> Michael Aronoff - CIIC
> ma@xxxxxxxx
> Calabasas, CA
>
> Here is the CGI:
>
> #!/usr/bin/perl --'
> ##########################
> # counter 1.0
> #
> # By Command-O Software
> # http://www.command-o.com
> #
> # Copyright 1996.
> # All Rights Reserved
> #
> #If you find this script useful, we would appreciate a
> #donation to keep this service active for the community.
> #Command-O Software, P.O. Box 12200, Jackson WY 83002
> ##########################
> #<!--#exec cgi="counter2.cgi"-->
> $file = "$ENV{'DOCUMENT_URI'}";
> $file =~ s/\//_/g;
> open(FILE,"data/$file");
> flock (FILE, 2);
> $count = <FILE>;
> flock (FILE, 8);
> close(FILE);
>
> $count++;
>
> open(FILE,">data/$file");
> flock (FILE, 2);
> print FILE "$count";
> flock (FILE, 8);
> close(FILE);
> print "Content-type: text/html\n\n";
> print "$count";
> exit;
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>