Quote:
Originally posted by fuzebox
You've got mad skills.
Code:
<?php
$NUMBER;
# retrieve counter if file exists
if(file_exists("hits.txt"))
{
$FILE = fopen("hits.txt","r");
if($NUMBER = fgets($FILE,999))
{ $NUMBER = trim($NUMBER); }
fclose($FILE);
}
$FILE = fopen("hits.txt","w");
$NUMBER=$NUMBER + 1;
fwrite($FILE,$NUMBER);
fclose($FILE);
echo "<p>" . $NUMBER . "</p>";
?>
|
do you think we are going to keep this layout once we release this site to the public? your sharp guy.
