kiks Posted April 10, 2005 Report Share Posted April 10, 2005 Vienkaarshs skaitiitaajs: <? $desk="skait.txt"; $desk=fopen("skait.txt", "r"); $num=fread($desk, 5); fclose($desk); echo $num; $num++; $desk2=fopen("skait.txt", "w"); fwrite($desk2, $num); fclose($desk2); ?> bet operaa straadaa tikai ja spaida refresh (kad ieiet pirmo reiz tad skaitu nepalielina un raada "vecu" skait.txt veertiibu); mana doma: uzlikt saakumaa vienu refresh bet kaa lai to uztaisa lai refresh buutu tikai viens pashaa saakumaa nevis ik peec kaadaam tur sekundeem... varbuut veel kaads risinaajums... Link to comment Share on other sites More sharing options...
Kavacky Posted April 10, 2005 Report Share Posted April 10, 2005 Varbūt izvadi nevis to veco vērtību, bet gan jauno? PS: Kāds tam sakars ar browseri te? Link to comment Share on other sites More sharing options...
kiks Posted April 10, 2005 Author Report Share Posted April 10, 2005 lieta taada ka explorerii viss straada taa kaa tam jaabuu - katru reizi ieejot lapaa raada naakamo skaitli; operaa, katru reizi atverot, raada tikai vienu un to pashu skaitli, iznjemot gadijumu, ja nospiezh refresh Link to comment Share on other sites More sharing options...
bubu Posted April 10, 2005 Report Share Posted April 10, 2005 Opera droši vien iekešo rezultātus. Uzliec http headerus, kas aizliegs iekešo lapu browserim. Apskaties šo: http://kirils.id.lv/?read=12&_cc=9 Link to comment Share on other sites More sharing options...
kirils Posted October 22, 2005 Report Share Posted October 22, 2005 Tu aizmirsi arii gadijumu, kad cilveeks tur ieiet pashu pirmo reizi. es domaaju, ka viss ir korekti un taa tas ir jaaatsaaj. kaapeec Tev jaaieskaita counteris katru reizi, kad cilveeks tur atnaak? Link to comment Share on other sites More sharing options...
Recommended Posts