Forum Moderators: coopster

Message Too Old, No Replies

PHP, AWSTATS, & CRON

         

Storyman

2:19 am on Jul 29, 2006 (gmt 0)

10+ Year Member



Does anyone know of a tutorial to write a PHP script that will grab the number of unique visitors from AWSTATS data txt file, then email it? Eventually, a cron job will be created to email the results.

Even a script someone has written will be helpful to see how it's done.

AjiNIMC

5:59 pm on Jul 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



write a script which can read the log file and this will solve the problem.

eelixduppy

3:07 am on Jul 30, 2006 (gmt 0)



Use file_get_contents [us3.php.net] with the text file and then use your standard mail function [us3.php.net] to send the data to an email address.

Good luck!