• 0

Need some help w/ a CGI Script


Question

Hi again! :)

I have a CGI Script (attached) that logs all Apache errors to either a log file or emails them to the admin, or both.

I have a problem.

I need a line (or few lines) added to stop it from logging or emailing any type of error (ignores it) that is a result of a certain file. For example below, I don't want it to log an error if the requested item was a certain file, or the Browser was a certain one.

I'd appreciate if any of you could edit this thingy for me, I'm new to CGI

Here is the output from the log routine:

[ERROR CODE]:	401 NO AUTHORIZATION
[DT/TIME]: ?Wed Jan 22 08:29:20 2003
[REQSTD PAGE]:	/members/test
[REQSTD FROM]:	
[USERS IP]: ?68.xxxx
[USERS HOST]:	
[BROWSER]: ?Microsoft Data Access Internet Publishing Provider Protocol Discovery
[MEMBER ID]:	
---------------------------
[ERROR CODE]:	401 NO AUTHORIZATION
[DT/TIME]: ?Fri Jan 24 10:01:59 2003
[REQSTD PAGE]:	/_vti_bin/_vti_aut/author.exe
[REQSTD FROM]:	
[USERS IP]: ?68.xxxx
[USERS HOST]:	
[BROWSER]: ?MSFrontPage/5.0
[MEMBER ID]:

errmanager.cgi

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.