you can write a perl cgi script that knows who accesses it (through the
"REMOTE_HOST" cgi environment variable) or you could even write one that
knows when another script has been accessed (you would have to add code to
the other script), but it is a bit trickier to write a script that knows
when another plain html page has been acessed (i'm guessing that that's what
you want). to do this, you would have to find a way to send information to
your perl script when the page you want to track has been loaded... like
making a form and having javascript submit it for you when the page is
loaded:

<body onload="form1.submit()">
<P><!-- some content -->

<form name="form1" action="yourscript.pl">
<!-- nothing in the form, users won't see it on the page -->
</form>
</body>

i am 99% sure that the javascript is wrong in the example above... just
wanted to give you a place to start. but it would be something along those
lines.

you might be better off just writing a script to parse your log file (this
type of info should be in there)... or even better off, picking up some
software that does it for you... although i don't know if there are is any
free log file reporting stuff.

or, if you want to be a little more hardcore, you could write an ISAPI
filter (if you are using IIS) :)

hope this helps,
ed


-----Original Message-----
From: David Lewis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 16, 2000 3:36 PM
To: Perl-Win32-Users Mailing List
Subject: Networking


I need to write a Perl CGI script that can get the IP address of a machine
that accesses a certain web page.  It would be best if it were portable to
other platforms.  Thanks
    Dave Lewis

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to