-
Aug 29, 2002, 09:01 AM
#1
Free web counter?
I need a web counter for one of my sites to track number of visitors to my web site.
Any recommendations?
and BTW...it must be FREE!
-
Aug 29, 2002, 09:20 AM
#2
Re:Free web counter?
I'll just write one for you.
What scripting language does your server support? (php, asp, CF, etc...)
-
Aug 29, 2002, 09:39 AM
#3
Re:Free web counter?
It supports both PHP and ASP.
Thanks much
-
Aug 29, 2002, 10:20 AM
#4
Re:Free web counter?
This is a basic counter written in PHP.
place the text in a file named whatever.php
----------------------------------------------------
<?
if(file_exists("counter.txt")
{
$fp = fopen("counter.txt", "r"
$count = fgets($fp, 255);
$count++;
fclose($fp);
print("This site has had $count hits"
$fp = fopen("counter.txt", "w"
fputs($fp, $count);
fclose($fp);
}
else
{
$fp = fopen("counter.txt", "w"
fputs($fp, "1"
print("This site has had 1 hit"
fclose($fp);
}
?>
------------------------------------------------------
then wherever on your page you want the counter to apear write:
require "whatever.php";
If your site is on a Unix/Linux server, you'll have to change the write permissions on the counter.txt file from a shell.
type this in your terminal:
$ touch counter.txt <return>
$ chmod 777 counter.txt <return>
-
Aug 29, 2002, 02:20 PM
#5
Re:Free web counter?
-
Sep 18, 2002, 02:15 PM
#6
Re:Free web counter?
[quote author=CKnight link=board=10;threadid=110;start=0#513 date=1030634457]
This is a basic counter written in PHP.
place the text in a file named whatever.php
----------------------------------------------------
<?
if(file_exists("counter.txt")
{
$fp = fopen("counter.txt", "r"
$count = fgets($fp, 255);
$count++;
fclose($fp);
print("This site has had $count hits"
$fp = fopen("counter.txt", "w"
fputs($fp, $count);
fclose($fp);
}
else
{
$fp = fopen("counter.txt", "w"
fputs($fp, "1"
print("This site has had 1 hit"
fclose($fp);
}
?>
------------------------------------------------------
then wherever on your page you want the counter to apear write:
require "whatever.php";
If your site is on a Unix/Linux server, you'll have to change the write permissions on the counter.txt file from a shell.
type this in your terminal:
$ touch counter.txt <return>
$ chmod 777 counter.txt <return>
[/quote]
Yow man... this is really nice. I'm reading this and it just makes me get all teary inside. Yeh.. this is deep, this is what the Internet shud b about.
Keep it up guys, that's really kewl!
-
Re:Free web counter?
[quote author=markswan link=board=10;threadid=110;start=0#2097 date=1038754153]
Im blending een..you cant see me..
[/quote]
markswan, welcome and feel free to blend een ;D
-
Re:Free web counter?
Think u could write a guestboob script 4 me.. ;D
Nice work...
-
Re:Free web counter?
[quote author=Tech_Guru link=board=10;threadid=110;start=0#2108 date=1038781071]
Think u could write a guestboob script 4 me.. ;D
Nice work...
[/quote]
I'll leave the writing to Superman err...sorry...CKnight ;D The best that I can do is point you to a free one - http://www.boesch-it.de/sw/simpgb.php
-
Dec 2, 2002, 10:13 AM
#10
Re:Free web counter?
[quote author=Chris link=board=10;threadid=110;start=0#2117 date=1038783808]
[quote author=Tech_Guru link=board=10;threadid=110;start=0#2108 date=1038781071]
Think u could write a guestboob script 4 me.. ;D
Nice work...
[/quote]
I'll leave the writing to Superman err...sorry...CKnight ;D The best that I can do is point you to a free one - http://www.boesch-it.de/sw/simpgb.php
[/quote]
After loking at the features of that guestbook, I must say it seems rich. More like a forum than a guestbook.
A comparable one would probably take me a whole day to write so I suggest you go with that one.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules