Re: logging page views, which method is better????

From: Date: Sun, 14 Jan 2001 11:10:18 +0000
Subject: Re: logging page views, which method is better????
Groups: php.general 
Request: Send a blank email to php-general+get-34461@lists.php.net to get a copy of this message
Addressed to: "Dallas Kropka" <dallask@austin.rr.com> php-general@lists.php.net ** Reply to note from "Dallas Kropka" <dallask@austin.rr.com> Sun, 14 Jan 2001 00:57:10 -0600 > > > I have a large site, with several hundred pages.... its a product > listing and shopping cart.... and I want to log my page views.... I > receive an average of 3000 hits per minute. > > Is it better (faster) to log my views to a database table? or to a > flat file? No need to re-invent the wheel, all accesses are already being logged. If you are using Apache, take a look at the access log. Every hit to the server is already logged there. I am not sure what the default location for the file is, but you can find it with locate access_log or by looking for the string Log in your httpd.conf file. I believe it may appear under either the AccessLog or CustomLog keywords. You might want to look at Webalizer, or a couple of other programs to analyze the contents. http://www.mrunix.net/webalizer/ There are others, but this is the one I use. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com

« previous php.general (#34461) next »