The nonprofit I run a web site for again wants a counter. I did work on putting
together a PHP counter and came up with the following.
<?php
$vCounter = "TotVis.txt";
if(file_exists($vCounter))
{
$oFile = fopen($vCounter, "r+");
$visits = fread($oFile,filesize($vCounter));
$visits++;
rewind($oFile);
fwrite($oFile, $visits);
fclose($oFile);
}
else
{
$oFile = fopen($vCounter, "w");
$visits = "1";
fwrite($oFile, $visits);
fclose($oFile);
}
echo "As of December 22, 2005 you are visitor number $visits to
nfoforce-services.com.<br />Counter provided by <a
href=\"http://www.stormdragon.us\">Storm Dragon</a>.";
php?>
Is this correct ? And how do I add it? If this is off topic, please reply to
[EMAIL PROTECTED]
Angus MacKinnon
Infoforce Services
http:ééwww.infoforce-services.com
It is impossible to rightly govern the world without God and the Bible.
George Washington
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************