|
|
|
|
![]() ![]() |
Dec 6 2004, 04:31 PM
Post
#1
|
|
|
Sorry for not being active, Uni :( ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 933 Joined: 24-August 04 From: South Wales, UK Member No.: 892 |
All you do is copy this code into the page you want to display it on.
CODE <?php $counterfile = "counter.txt"; $counter = file("$counterfile"); $c = $counter[0]; if (strlen($c) == 0) {$c=0;} $c=$c+1; $a = fopen("$counterfile", "w"); fwrite($a, $counter = ""); fputs($a, $c); fclose($a); echo ("$c"); ?> Make a file called 'counter.txt' in the same directory as the page the code is on. Remember to CHMOD your txt file to 666. (change the permissions to 666) |
|
|
|
Dec 15 2004, 05:13 PM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 9 Joined: 15-December 04 Member No.: 2,732 |
Veri Tnx
|
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 7th September 2008 - 01:30 PM |