• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CGI?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGI?


  • Subject: Re: CGI?
  • From: Timothy Bates <email@hidden>
  • Date: Tue, 17 Apr 2001 12:22:56 +1000

On 13/04/2001 4:00 AM, "Michelle Steiner" <email@hidden> wrote:
> I'm trying to write a CGI to display a counter in a web page. This is
> the script I've written:

One easy solution is to use
http://www.vampiresoft.com/Products/Internet/OpenScript.html


You can then write the script to do what you want (probably using
gifconverter to return your hit coutn as a gif), and jut embed it right
inside your page. OpenScript takes care of passing the environment into you
as variables which you can get just like in a stand alone script.

Script Debugger is great for debugging cgis.

The easiest solution for keeping hit counts is to look for (and create if
necessary) a text file called <filename.counter> and then store 1 number in
there which you read, increment and write back each time. Of course you
could store more info in there like the date of the last hit, or the IP of
every hitter etc.

A cool solution uses a database, which is faster, but in your application,
this might not matter.

best as ever,
tim



Dr Timothy Bates <mailto:email@hidden>
Macquarie Centre for Cognitive Science (MACCS)
Macquarie University
Ph 61 (2) 9850 8623
Fx 61 (2) 9850 6059


References: 
 >CGI? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Scripting Components Version
  • Next by Date: Re: Coerce String to Handler?
  • Previous by thread: Re: CGI?
  • Next by thread: Re: CGI?
  • Index(es):
    • Date
    • Thread