in reply to Email on every page hit

you can embed a cgi script call in every page by doing something like this:
<img src="http://www.site.com/cgi-bin/email_page_hit.cgi?page=NAMEOFPA +GE.htm">
now everytime your page is loaded your script will be called and an email will be sent to you notifying you.

Keep in mind that your script must return an image...what you can do is return a blank 1x1 pixel image so that nothing is displayed where it is called. have email_page_hit.cgi return an image like this:
print "Expires: Fri, 30 Oct 1998 14:19:41 GMT\n"; print "Content-type:image/png\n\n"; open IMAGE, "PATH_TO_FILE/invisible.png" or die "ERROR $!"; binmode IMAGE; binmode STDOUT; my $buff; while(read IMAGE, $buff, 1024) { print $buff; } close IMAGE;
this code snippet will have your cgi print out an image in place of the html <img> tag

Replies are listed 'Best First'.
Re: Re: Email on every page hit
by talexb (Chancellor) on Dec 05, 2003 at 19:47 UTC

    Well, that will work fine until you get someone who chooses not to display graphics -- either because they have that setting in Opera or Mozilla, or because they're using Lynx, or because they're using a browser that 'speaks' the pages to them (because they're blind).

    --t. alex
    Life is short: get busy!