WMCounter is another PHP & Flat Text File Multiple Daily + Total visitors counter for your page(s).
You can find WMCounter at:
You just need PHP, and little help hand. Change the extension from .php to .php3 if you use PHP 3 on your system.
Extract wmcounter.zip, open wmcounter.php with your text editor, change what to be changed, match them with your system. If you're running Windows, i suggested to use wordpad, not notepad. Upload to your webserver, don't forget to chmod 777 your data subdir.
WMCounter is a function that return an array (3 elements). The 1st element of return value presented how many visitors a day, the second element presented total visitors, and the last element presented string yyyy-mm-dd, which means the date since the counter began. It's easy to use, so simple, insert the code below into your page to display the counter:
<?
include("wmcounter.php");
$visitors = daily_count("","");
echo "Visitors today: ".$visitors[0]." from ".$visitors[1]."
visitors, since ".$visitors[2];
?>
If you want to use WMCounter on other pages, simply just fill parameters with 'whatever' name you like, ie:
$visitors = daily_count("aboutus-counter.log",
"aboutus-visitors.log");
$visitors = daily_count("products-counter.log", "products-visitors.log");
Never use the same name!, or your counter will overwrite each other.
http://wartamikael.org/PHPScripts
© 010318, Rudy S. Ingga <toekangweb@wartamikael.org>
Back to top | WMScripts Home