...

View Full Version : Last one: How do I have a variable increased by one whenever a page is visited.......



Silver Sun
02-02-2003, 08:49 PM
.......I have a file called post.php, this needs to write the value of $pnumber to a txt file.

Its not a hit counter for post.php, I need it for creating a file called:

$pnumber.txt

And each post is of course 1 more than the pnumber of its predecessor.

thanks in advance.:thumbsup:

Jesh
02-03-2003, 06:56 AM
Hey

Do you have MySQL?

Jesh

pb&j
02-03-2003, 07:57 AM
You mean like...

$pnumber++;

Jesh
02-03-2003, 08:05 AM
Hey

I doubt thats what he means.

I think he wants it like page hits, in which case, MySQL would be the best option...?

Jesh



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum