ok i admit it iam newbie easy question for you guys out there!
i have this code ! for a counter how do i get it into my page?
<?php
Class Counter {
var $hits = "";
Function Main(){
$this->ReadFile();
$this->WriteFile();
}
Function ReadFile(){
$hiti = fopen("./hits.yo", "r");
while(!feof($hiti)){
$this->$hits .= fgets($hiti,128);
}
echo $this->$hits;
fclose($hiti);
}
Function WriteFile(){
$hito = fopen("./hits.yo","w+");
$this->$hits=$this->$hits+1;
fputs($hito,$this->$hits);
fclose($hito);
}
}
$count = new Counter;
$count->Main();
?>