Re: CGI?
Re: CGI?
- Subject: Re: CGI?
- From: Ted Wood <email@hidden>
- Date: Sat, 14 Apr 2001 01:57:45 -0700
Before I try to help, I have a couple of questions?
1. will the 'hit counter' be part of a static web page or a dynamic page?
2. will your counter consist of textual or graphical numerical digits?
If the web page is static, you can use SSI (Server-Side Includes) to
add the counter to your page. This, of course, assumes the web server
has SSI enabled. Check with the webmaster. To take advantage of this,
add the following line to your HTML page where you want the counter
to appear:
<!--#exec exe="/cgi-bin/counter.cgi"-->
You'd have to obtain or write an appropriate Counter CGI and make
sure it's referenced properly in the URL. With SSI enabled, the
webserver looks for SSI commands, such as the above, in the comments
of a web page and executes the CGI before returning the data to the
client. You may need to experiment to find out which commands work
with your webserver. Since SSI isn't standardized, commands are not
used consistently among webservers. <!--#exec exe="....some
URL..."--> works with my webserver, Quid Pro Quo.
In regards to Question #2 above, the Counter CGI can output the
result as text or graphics. That'll be your choice. There are many
Counter CGIs available for download. Ask around.
Back to Question #1... if the page is generated dynamically by
calling a CGI, you can modify the CGI to increment and include the
counter while the page is being constructed.
Let me know if you need more help.
Ted
It sounds there like the result will be a separate page in and of itself.
All I want to do is incorporate a counter within an existing page, for
example at the botton of the page, there would be one sentence that says
Since May 1, 2001, a total of <number> people have visited this web page.
With the number incrimenting every time the page is accessed.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------
References: | |
| >Re: CGI? (From: Michelle Steiner <email@hidden>) |