...

View Full Version : Text web counter



Victimizati0n
02-07-2003, 08:27 PM
Hey guys, im looking for a text webcounter. Do they make any in java or dhtml? And I want it to be text, not a picture or a link. Thanks!

Pleast Imstant message me on aim at : imverystupid

requestcode
02-07-2003, 08:41 PM
You will need a Server Side language such as Perl or PHP to perform that function.

Victimizati0n
02-08-2003, 12:10 AM
I have ssi on my site, isnt that what I need?

Xphp->UG-S<-
02-08-2003, 01:47 AM
this is the php code you can change the count.dat to whatever you want also this script will creat teh count.dat if it don't exsit
to iclude it use
<?php include ("whatever u namethefile.php"); ?>

code:
<?php
if(file_exists("count.dat")) {

// open for reading
$fp = fopen("count.dat", "r");
$count = fgets($fp, 1024);
$count++;
fclose($fp);
echo "$count people have visited this page.";
// open for writing
$fp = fopen("count.dat", "w");
fwrite($fp, $count);
fclose($fp);

} else {

// create a new file
$fp = fopen("count.dat", "w"); // open for writing
fwrite($fp, "1");
echo "one person has visited this page.";
fclose($fp);

}
?>

redhead
02-08-2003, 10:23 AM
you can get free ones already hosted for you, useful if your on a host that doesnt support server side coding.

try googleing it (http://www.google.co.uk/search?q=free+hit+counter)...

Mhtml
02-08-2003, 01:52 PM
If you have no luck finding one and can wait a few days my remote hosting service will be up.

Victimizati0n
02-08-2003, 01:57 PM
Ok, how much space would I get? Right now I get 20 and that isnt enough.

Mhtml
02-08-2003, 02:00 PM
Lol. :D

I meant remotely hosted applications.

F.N.G.
02-10-2003, 02:26 AM
This (http://www.codingforums.com/showthread.php?threadid=14058) thread might help...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum