then make a file called count.inc and chmod it to 777 so anyone can write
to
it. insert a number into the file.
Hey!
I tried to make this counter.php-file, that went ok, I think
My problem is to make the count.inc-file, I could make it but I have no idea
how to put "chmod" to "777" in it.
The
chmod is a *nix command. you do it to the file:
chmod 777 counter.inc
on the command line
-jack
-Original Message-
From: Marthe Kristiansen [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 3:04 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Newbie question: Page Counter
make one yourself:
a table with the data you want to store,
on every hit you insert there info, including Unique Session ID.
then use simple SQL queries to read your stats.
also see
http://www.phpbeginner.com/columns/McDonald/counter
there's an idea for beginners on how else it could work..
make a file called counter.php and include this text:
//-counter.php--
---//
?php
//Simple PHP counter, v0.1. Send comments to [EMAIL PROTECTED]
if (file_exists('count.inc'))
{
$fil = fopen('count.inc', r);
$dat =
4 matches
Mail list logo