--- Wade Smart <[EMAIL PROTECTED]> wrote: > Can one write a small script to track how many unique addresses > access a site? And if so, any ideas how that might be done? > > Wade
The variable $_SERVER['REMOTE_ADDR'] holds the apparent IP address of the HTTP request. However, IP addresses are notoriously unreliable as an indication of visitors. For example, a DSL or dialup user may have three or more IPs in a single day's Internet use. However, a school or company can have hundreds of computers which all flow through the same gateway and appear to come from the same IP address. Tracking unique users is normally accomplished by writing session variables (the session id is stored as a cookie on the browser) and keeping track of each session which has been created in a table. I hope this will help get you on the right track. I'm a little too busy to write your program :) James _____ James D. Keeline http://www.Keeline.com http://www.Keeline.com/articles http://Stratemeyer.org http://www.Keeline.com/TSCollection http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc. Fall Semester Begins Sep 7 -- New Classes Start Every Few Weeks. Spring Semester Begins in late January. Two new class topics. Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
