there are tutorials all over the inet.

<?
  $file_name = '/tmp/counter.txt';
  $counter = fread(fopen($file_name, 'r'), 4096);

  echo $counter;

  unlink($file_name);
  fwrite(fopen($file_name, 'w+'), ++$counter);
?>

--

  Chris Lee
  [EMAIL PROTECTED]



"Mark Lo" <[EMAIL PROTECTED]> wrote in message
000501c145d9$c5f56ca0$caccfea9@mark">news:000501c145d9$c5f56ca0$caccfea9@mark...
> Hi,
>
>         I would like to know how to write a web page counter in PHP or
> Javascript.
>
> Thank You
>
> Mark Lo
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to