
- Kod: Zaznacz cały
<?php
$plik="licz.txt";
chmod($plik, 0777);
$pl=fopen($plik,"r");
$illee=fgets($pl);
fclose($pl);
$illee++;
$pl=fopen($plik,"w");
fwrite($pl,$illee);
fclose($pl);
echo $illee;
?>
Z góry dzięki za pomoc
<?php
$plik="licz.txt";
chmod($plik, 0777);
$pl=fopen($plik,"r");
$illee=fgets($pl);
fclose($pl);
$illee++;
$pl=fopen($plik,"w");
fwrite($pl,$illee);
fclose($pl);
echo $illee;
?>
Frame 1 --
tt=new LoadVars();
qq=new LoadVars();
function myload(success:Boolean){
if(success){
ff.ile.text=tt.hitcount;
}else{
ff.ile.text="Brak polaczenia";
}
}
qq.sendAndLoad("licznik.php?"+new Date().getTime(),tt,"POST");
tt.onLoad=myload;
Fram 2 ---
stop();
<?php
$file = "licz.txt";
$fp = fopen($file, "r")
$reading = fgets($fp,6);
fclose($fp);
$reading=intval($reading);
$reading++;
print "hitcount=$reading&";
$fp = fopen($file, "w");
$writeing = fwrite($fp,$reading);
fclose($fp);
?>