foxc Posted March 23, 2008 Report Share Posted March 23, 2008 Kāds luuduz vareetu man iedot php scriptu, kas skaita cik reizu lapa refreshota..Un skaits ir visiem redzams, piemeeram lapas apakshaa.paldies Link to comment Share on other sites More sharing options...
martins256 Posted March 23, 2008 Report Share Posted March 23, 2008 uztaisi failu a.dat, ieliec tajā 0 <?php $a = file_get_contents('a.dat'); echp $a++; file_put_contents('a.dat',$a); ?> Link to comment Share on other sites More sharing options...
foxc Posted March 23, 2008 Author Report Share Posted March 23, 2008 nekas nesanaaca Link to comment Share on other sites More sharing options...
Val Posted March 23, 2008 Report Share Posted March 23, 2008 nevajag tač akli nokopēt. kļūda iekš echp Link to comment Share on other sites More sharing options...
foxc Posted March 23, 2008 Author Report Share Posted March 23, 2008 nevajag tač akli nokopēt. kļūda iekš echp to jau es no saakuma pamaniiju, bet taapat neiet Link to comment Share on other sites More sharing options...
martins256 Posted March 23, 2008 Report Share Posted March 23, 2008 es izlaboju escho. palaidu. pirmajās 2 reizēs error. tālāk mauc kā plānots. error, jo nebija tas vajadzīgais fails! Link to comment Share on other sites More sharing options...
werd Posted March 23, 2008 Report Share Posted March 23, 2008 Ja nemaki atrast sei foruma pec atslegas vardiem fwrite,fopen tad mekle manuālī fopen fread fwrite fclose Link to comment Share on other sites More sharing options...
Val Posted March 23, 2008 Report Share Posted March 23, 2008 taapat neiet php4? Link to comment Share on other sites More sharing options...
Recommended Posts