|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I call a program that will count hits
when someone accesses a web site? I do not want to display the results on the page, I just want to keep track of them in a file. |
|
#2
|
|||
|
|||
|
1) Go to -> http://www.scriptsearch.com/
2) Select 'Perl' and 'Counter, text-based' from the drop down menus and click "GO" button 3) Click on the 1st link 4) Search for "hidden counter" 5) Download it 6) Install and test it 7) What else? |
|
#3
|
|||
|
|||
|
Thanks for the suggestion, but I would like to learn to do these things myself. Do you know how to call a cgi-script from a web page
that doesn't use a submit button? |
|
#4
|
|||
|
|||
|
<!--#exec cgi="/cgi-bin/scripts.pl" -->
This wont process any variables you attach to it or anything. you'll need to use the 'include virtual' method to do that. |
|
#5
|
|||
|
|||
|
Note: This required SSI's to be enabled on your server. They usually are... but sometime the page has to have a .shtml extension, rather than the typical .html one.
|
|
#6
|
|||
|
|||
|
Thanks everyone!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > hit counter |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|