Gossamer Forum
Home : General : Perl Programming :

AX Logger Script

Quote Reply
AX Logger Script
Man, I just tried the xav.com logger script for the first time and it's wonderful! Smile

I just need one help though. . . How would I modify the script so that it pulls from the database, any visitor that is a non Mozilla type. That is, any users who are not visting my site with a browser which is most likely using a robot or crawler. I would like to see the browser name and the ip #. Thanks for any help you can give me!

------------------
http://www.techdevelopers.com
ASP, HTML, CGI, Flash, and more!

HPCalc.com - English
Official HP Calculator Site
http://www.hpcalc.com/english

Quote Reply
Re: AX Logger Script In reply to
Never mind about the first post, I got it to work now. Now I have another problem. . . It doesn't seem to capture the REMOTE_HOST. I tried writing a simple command like print $REMOTE_HOST; and nothing comes up. It should detect my IP host right? My IP # should be stored in $REMOTE_ADDR right?

I wrote a simple script on my computer and ran in through OmniHTTPd web server and it detects my remote host name. What is wrong?

[This message has been edited by XanthisHP (edited August 11, 1999).]
Quote Reply
Re: AX Logger Script In reply to
Try this:

Code:
$ENV{'REMOTE_HOST'}

OR

Code:
$ENV{'REMOTE_ADDR'}

ENV determines that the variable is an "ENVironmental" variable.

Regards,



------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: AX Logger Script In reply to
That's what I tried. . . I think it's my server because the only variable not picking up is the $ENV{REMOTE_HOST}. All the other variables picks me up when I visit. I used SSI and the same thing happens. When I placed it on another server, it works fine.

I see this module called CGI.pm that have sub routines that works for all platforms. How do I call them and store the values?