Joined: 14 Jul 2006
Location: Arizona, w00t
|Posted: Tue Jul 25, 2006 6:40 am Post subject: Simple Accesslog Viewer
|NOTE: Due to my lack to really make this script super uptight secure, the code your about to see is very crude and could possibly hurt your eyes :)
I decided that, since I live in a GUI-based world, and even though I could work quite well under a text-based interface, I needed a script or program to view my access log with. Using my knowledge of PHP, php.net's Online Manuals, and a 815-page PHP5 book, I managed to make a simple and quick script for viewing your log.
Here's a screenshot of what the script will produce:
For the IPs, I suggest password-protecting this file, or changing $ip to "Hidden", so it doesn't show the IPs. But do what you want. I have this script available on my server, but I've password protected it, and no one knows where it is, so it's pretty safe :)
By the way, this is my first public script. I'd publish all my scripts, but most of them are obsolete by the ones that are already out there. Please do not hesitate to comment on what needs to be changed in this script, for better or worse!
Download: http://dyslexia.zapto.org/projects/accesslog.php.gz (GZIP Archive, 1.01KB)