The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
> Or ... someone has found access to that directory.
What, and adding hits for you??? lol.
Where is your txt file hosted??? One the http accesable area (htdocs) or at the root?? (not the htdocs), and what type of file is it??? .DAT .TXT, etc?
I like the idea of checking the number has only been increased by one :o) Very clever.
Or ... someone has found access to that directory.
Don't suppose you know anything about Video Clips on sites??? I would like to make some clips from TV/Video onto MPEG's with the best posible quality with minimum file size... you any good with that?
> Mind you, if I were you I might consider not writing the HTML Code to
> the file, just the RAW data, just in case you wanna change the wayout.
> It would make easier work for you.
That's what I've done in my newer hit counter scripts. I just havent got round to updating this one yet - im going to in the summer tho... :D
Mind you, if I were you I might consider not writing the HTML Code to the file, just the RAW data, just in case you wanna change the wayout. It would make easier work for you.
--------------
$countfile = "_admin/$content.txt";
$statsfile = "_admin/$content.dat";
if (file_exists($countfile)) {
$fp = fopen($countfile, "r");
$output = fread($fp, filesize($countfile));
fclose($fp);
$count = intval($output);
}
else {
$count = 0;
}
global $ShowCount, $countfile, $statsfile, $count;
$month = date("M");
$day = date("d");
$year = date("Y");
$hour = date("H");
$minute = date("i");
$second = date("s");
$date = "$day/$month/$year $hour:$minute:$second";
$ipaddress = getenv("REMOTE_ADDR");
$otherinfo = getenv("HTTP_USER_AGENT");
$fp = fopen($statsfile, "a");
fwrite($fp, "
fclose($fp);
$count++;
$fp = fopen($countfile, "w");
fwrite($fp, $count);
fclose($fp);
?>