in reply to Making script called from image tags

There is no reason to use web server logging scripts. Any half-decent web server can log this information, without you needing to do anything special, other than a line or two in a configuration file and a restart:

You can trigger the e-mail through whatever you have doing your log rotation, or send the logs to a process, rather than a file.

  • Comment on Re: Making script called from image tags

Replies are listed 'Best First'.
Re^2: Making script called from image tags
by ww (Archbishop) on May 05, 2005 at 14:39 UTC
    <quibble>
    "There is no reason to use web server logging scripts."

    For those wretched, undeserving souls who rely upon a hosting service (as I and some of my clients do), "a line or two...and a restart" are not necessarily options.

    </quibble>
      ... and ++ re the rest...

      Most decent* hosting services will provide logging. Some hosts will give you a way to configure your own virtual host through what some of them call a 'control panel'.

      * -- those that actually care, and are customer oriented, as opposed to someone tossing up a server, for a place for you to dump your files, and trying to compete solely on price. You really do get what you pay for.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^2: Making script called from image tags
by Anonymous Monk on May 05, 2005 at 14:18 UTC
    It from old German archives, time of perl programming formation.. Old time, old programmers.. What about the rest, is the script syntax correct? Or it's too clumsy also? You mean insert this this way? Is this correct:
    #print "Content-type: text/plain\n\n"; print "Content-type: image/x-xbitmap\n\n"; print "#define name_width 1"; print "\n"; print "#define name_height 1"; print "\n"; print "static char name_bits[] = { 0x04 };"; print "\n"; if ($check_host) { # read host and time info from last visitor ....