From owner-freebsd-questions@FreeBSD.ORG Mon Feb 2 17:29:06 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B72716A4CE for ; Mon, 2 Feb 2004 17:29:06 -0800 (PST) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id EABE443D39 for ; Mon, 2 Feb 2004 17:29:04 -0800 (PST) (envelope-from kline@thought.org) Received: from thought.org (root@tao [10.0.0.247]) by sage.thought.org (8.12.9/8.11.4) with ESMTP id i131SwVX007586 for ; Mon, 2 Feb 2004 17:29:01 -0800 (PST) (envelope-from kline@thought.org) Received: (from kline@localhost) by thought.org (8.12.6/8.11.3) id i131T0ea078785 for freebsd-questions@FreeBSD.ORG; Mon, 2 Feb 2004 17:29:00 -0800 (PST) (envelope-from kline) Date: Mon, 2 Feb 2004 17:28:59 -0800 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20040203012859.GA78736@tao.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 17 years of service to the Unix community User-Agent: Mutt/1.5.5.1i Subject: OT: php question. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 01:29:06 -0000 Is there a way of having print the name of its file (along with the number of hits for tht file) and keep track of all the files in a $WWW_ROOT/filecount page? Right now I have a cgi script tracking over 100 individual file with filename1 hitcount1 filename2 hitcount2 ... filenameN hitcountN This question came about when I realized that I've got more than 30K hits on *all* my pages in the past 22 months. Of course, I could hand-code each individual filename and call the counter code. Isn' there a more automagic way? thanks for any clues, gary -- Gary Kline kline@thought.org www.thought.org Public service Unix