
Solid, safe website tools.
Whatever your need, Will Bontrager builds powerful software solutions.
|
(Get Attention Ticker for your web site)
Logging Page ActivityBy Will Bontrager The information in this post has been addressed to various degrees with various focus on various pages of our web sites. Here, I focus tightly on one thing, logging page activity with JavaScript. The JavaScript sends information to a CGI Perl or PHP script. The information is then logged. The JavaScript sends the information to the server-side script with a call for an image. This example sends the document's referrer to a logging script named Log.cgi:
The Log.cgi Perl script is in the textarea box below. Note that a condition of using the software is your agreement to the License Agreement. Also, there is one customization point where the log file is specified. If the log file is to be in the same directory as the Log.cgi script, only the file name needs to be specified. Otherwise, specify the directory location with the name. A PHP script has not been made for this post. When I wrote this, I was pressed for time. If you'll be kind enough to rate this post a 4 or 5, and if many people do so, I'll make the time to write a PHP logging script and append it. October 30, 2006 Please note: Articles on this website are presented "as is". However - If you have a question about a CGI script, HTML, CSS, PHP, or JavaScript
Rate this blog post.
No page reload! |
|
|
© 1998-2001 William and Mari Bontrager |
|