Zend - The PHP Company




Counters

Add Code


The Anticounter  

Type: code fragment
Added by: jcostom
Entered: 24/07/2000
Last modified: 08/12/1999
Rating: *** (6 votes)
Views: 8332
Aren't we all tired of hit counters? How's about we take them out back and shoot them? Better still, let's give them a completely bogus counter. Sure, it's silly, but I'm a silly mood today.


<?
    mt_srand
((double)microtime()*1000000);
    
$rnd mt_rand(1999999);
?>


Usage Example


You're visitor number <?=$rnd?>.  Or not.


Rate This Script





Search



This Category All Categories