Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Count how many times a CGI script has been called

by little (Curate)
on May 04, 2003 at 11:03 UTC ( #255461=note: print w/ replies, xml ) Need Help??


in reply to Count how many times a CGI script has been called

nasa,

When your script is called via a "submit" button then your server will get a document request for your script using request method POST. This will look alike:

217.9.44.215 - - [04/May/2003:12:47:35 +0200] "POST /cgi-bin/nasa.cgi HTTP/1.1" 302 5

In this way when determining your web server access logs you would see all SUCCESSFULL calls to that script and in your error scripts then those calls to the script that caused an internal server error, which happens if your script dies or will bot be executed due to an error.

So I would go with Abigail-II to use the server logs for that counting task at its already there, you just need to grab those infos from them.

try to search for "web log anlalyzer" here at perlmonks or at cpan or sourceforge or even google and you'll find plenty of tools who already have been invented and mostly heavily tested, which enable you with small modifications or just custom initial settings to fullfill your task.

I would not recommend appending to a file as that consumes your web servers ressources and is already done in other places by the web server itself.

Have a nice day
All decision is left to your taste


Comment on Re: Count how many times a CGI script has been called
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://255461]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-07-30 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (241 votes), past polls