[ADMIN] THREAD CLOSED Re: [WSG] APHP counter script

2008-01-29 Thread Lea de Groot
On Tue, 29 Jan 2008 12:49:40 -0800, Hayden's Harness Attachment wrote:
 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.

We are off topic here.
If anyone would like to comment, plase reply to Angus directly :)

warmly,
Lea
-- 
Lea de Groot
WSG Core Member


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



[WSG] APHP counter script

2008-01-29 Thread Hayden's Harness Attachment
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]
***