tiy Posted March 15, 2006 Report Share Posted March 15, 2006 (edited) <?php ?> Kapec kad es ienaku lapa no sakuma paradas 0 , pec refresh tikai 1 utt. Vai nevar kaut ka izdarit ta, lai atverot saitu jau butu ierakstijies mans ip faila? Edited March 16, 2006 by tiy Link to comment Share on other sites More sharing options...
v3rb0 Posted March 15, 2006 Report Share Posted March 15, 2006 ierakstījies jau ir, bet nav pieskaitījies. ja veic ierakstīšanu, tad pie $host=count($list); pieliec vēl +1 klāt. Link to comment Share on other sites More sharing options...
Delfins Posted March 15, 2006 Report Share Posted March 15, 2006 pie katras ielādes tu gribi taisīt masīvu no liela faila?gy... Link to comment Share on other sites More sharing options...
tiy Posted March 15, 2006 Author Report Share Posted March 15, 2006 (edited) Ja, kas tu doma ka tas ir parak igli, protams, piekritu, bet es no sakuma gribu ar failiem samera labi , tad pie SQL kerties klat. P.S } $host=count($list); echo $host; } $list=file($path); // pieraksto sho te un viss darbojas jau pie pirmas ielades $host=count($list); echo $host; Edited March 15, 2006 by tiy Link to comment Share on other sites More sharing options...
v3rb0 Posted March 15, 2006 Report Share Posted March 15, 2006 aha lasīt lielu failu 2x būs atrāk nekā +1 tad ja ieraksta jaunu? lai gan ja vajag lai tikai darbojas var arī 2x lasīt. Link to comment Share on other sites More sharing options...
tiy Posted March 15, 2006 Author Report Share Posted March 15, 2006 Rodas ,tads jautajums ir tachu kaut kada f-ja , kas uzzina lapas ielades laiku te ari tada ir.(footer'i) Ka to sauc? Link to comment Share on other sites More sharing options...
bubu Posted March 15, 2006 Report Share Posted March 15, 2006 microtime Link to comment Share on other sites More sharing options...
Vebers Posted March 15, 2006 Report Share Posted March 15, 2006 <?php $startTime = array_sum(explode(" ",microtime())); //tavs kods echo round((array_sum(explode(" ",microtime())) - $startTime),4).' sec'; ?> Link to comment Share on other sites More sharing options...
bubu Posted March 15, 2006 Report Share Posted March 15, 2006 Ja ir php5, tad prosta $startTime = microtime(true); Link to comment Share on other sites More sharing options...
Recommended Posts