- Dec 9, 2001
- 11,107
- 0
- 76
How hard is that to do without having to have a 3rd party put one at the bottom of your page for you?
Or is it just easier to sign up for one?
-Ben-
Or is it just easier to sign up for one?
-Ben-
Originally posted by: minendo
<?php
$fp = fopen("stats.txt","a+");
$count = fread($fp, 10);
$count = $count+1;
echo "You are Visitor No. ", $count ;
fclose($fp);
$fp = fopen("stats.txt","w+");
fwrite($fp, $count, 10);
fclose($fp);
?>
Place it into the code of the page (the page has to be php). Also, create a blank txt document named stats.txt and place it in the same directory as the page the code is located on. Set the permissions on stats.txt to 777.Originally posted by: Anubis
Originally posted by: minendo
<?php
$fp = fopen("stats.txt","a+");
$count = fread($fp, 10);
$count = $count+1;
echo "You are Visitor No. ", $count ;
fclose($fp);
$fp = fopen("stats.txt","w+");
fwrite($fp, $count, 10);
fclose($fp);
?>
what do you do with that?
just copy it into your webpages HTML file?
Originally posted by: minendo
Place it into the code of the page (the page has to be php). Also, create a blank txt document named stats.txt and place it in the same directory as the page the code is located on. Set the permissions on stats.txt to 777.Originally posted by: Anubis
Originally posted by: minendo
<?php
$fp = fopen("stats.txt","a+");
$count = fread($fp, 10);
$count = $count+1;
echo "You are Visitor No. ", $count ;
fclose($fp);
$fp = fopen("stats.txt","w+");
fwrite($fp, $count, 10);
fclose($fp);
?>
what do you do with that?
just copy it into your webpages HTML file?
Man, u should be able to put that up in 10 mins with note pad......Originally posted by: Anubis
well that was like greek to me, i think ill pass, im a compleat n00b at this, my site which is in my sig, it took me 2 days to do just that useing dreamweaver
Originally posted by: cr4zymofo
Man, u should be able to put that up in 10 mins with note pad......Originally posted by: Anubis
well that was like greek to me, i think ill pass, im a compleat n00b at this, my site which is in my sig, it took me 2 days to do just that useing dreamweaver![]()
Originally posted by: Anubis
Originally posted by: minendo
Place it into the code of the page (the page has to be php). Also, create a blank txt document named stats.txt and place it in the same directory as the page the code is located on. Set the permissions on stats.txt to 777.Originally posted by: Anubis
Originally posted by: minendo
<?php
$fp = fopen("stats.txt","a+");
$count = fread($fp, 10);
$count = $count+1;
echo "You are Visitor No. ", $count ;
fclose($fp);
$fp = fopen("stats.txt","w+");
fwrite($fp, $count, 10);
fclose($fp);
?>
what do you do with that?
just copy it into your webpages HTML file?
well that was like greek to me, i think ill pass, im a compleat n00b at this, my site which is in my sig, it took me 2 days to do just that useing dreamweaver
Just place it in the body of the php page you want it to display on.Originally posted by: RossMAN
Originally posted by: Anubis
Originally posted by: minendo
Place it into the code of the page (the page has to be php). Also, create a blank txt document named stats.txt and place it in the same directory as the page the code is located on. Set the permissions on stats.txt to 777.Originally posted by: Anubis
Originally posted by: minendo
<?php
$fp = fopen("stats.txt","a+");
$count = fread($fp, 10);
$count = $count+1;
echo "You are Visitor No. ", $count ;
fclose($fp);
$fp = fopen("stats.txt","w+");
fwrite($fp, $count, 10);
fclose($fp);
?>
what do you do with that?
just copy it into your webpages HTML file?
well that was like greek to me, i think ill pass, im a compleat n00b at this, my site which is in my sig, it took me 2 days to do just that useing dreamweaver
I'm a n00b at this also but I do understand creating a blank stats.txt document (Notepad) and CHMOD it to 777.
But I'm still confused on how/where to put that code? Would I use phpmyadmin or something like that?
Originally posted by: RossMAN
I am still confused/lost.
Maybe minendo can hold my hand and walk me through it![]()
Originally posted by: thawolfman
Originally posted by: RossMAN
I am still confused/lost.
Maybe minendo can hold my hand and walk me through it![]()
Or he can bitch slap you and leave you in the dust! :Q
I'm Rick James beeyatch.Originally posted by: RossMAN
Originally posted by: thawolfman
Originally posted by: RossMAN
I am still confused/lost.
Maybe minendo can hold my hand and walk me through it![]()
Or he can bitch slap you and leave you in the dust! :Q
If I'm the bitch then he must be the pimp![]()
Originally posted by: rh71
Rossman can figure out how to piece deals and pricematch but he can't figure out how to put code on any given page. HMMMM.![]()
Turn off avatars. Problem solved.Originally posted by: aRCeNiTe
Originally posted by: rh71
Rossman can figure out how to piece deals and pricematch but he can't figure out how to put code on any given page. HMMMM.![]()
I wish rossman would pick one damn avatar
BWHAHAHAHAHAHAOriginally posted by: redly1
are you making a hit counter for your bong?
Originally posted by: minendo
Turn off avatars. Problem solved.Originally posted by: aRCeNiTe
Originally posted by: rh71
Rossman can figure out how to piece deals and pricematch but he can't figure out how to put code on any given page. HMMMM.![]()
I wish rossman would pick one damn avatar