leisure Posted March 4, 2006 Report Share Posted March 4, 2006 wai ir kk iespeeja noteikt cik lapa ir 'liela' tb cik kb nokachaasies atverot lapu? Link to comment Share on other sites More sharing options...
hmnc Posted March 4, 2006 Report Share Posted March 4, 2006 view page info iekšto browsera. ja tur neparādās tad uz FF ir plugins, kas līdzīgi kā Operai parādīs ielādēto datu daudzumu. Link to comment Share on other sites More sharing options...
leisure Posted March 4, 2006 Author Report Share Posted March 4, 2006 bet ar php pirms outputa newar noteikt cik daudz vaidzees uzerim ielaadeet??? Link to comment Share on other sites More sharing options...
bubu Posted March 4, 2006 Report Share Posted March 4, 2006 Jālieto output bufferings. ob_start() Un tad, kad esi visu izvadījis, tad ob_get_length fja. Otrs variants, visu neizvadi ar echo, bet sakabini vienā garā stringā, un tad prosta strlen($garais_strings). Un tad vari to stringu ar echo izvadīt. Link to comment Share on other sites More sharing options...
leisure Posted March 4, 2006 Author Report Share Posted March 4, 2006 pie moduljiem izmantoju ob_ tur jaw lietoju to ob_get_length() un pie parejiem outputiem lietoju jaw vienu stringu ($txt) nju ok izmantoshu strlen() vnk taa neidomaajos... tnx ;) Link to comment Share on other sites More sharing options...
Kaklz Posted March 5, 2006 Report Share Posted March 5, 2006 a kam tas satura garums ir vajadzīgs vispār? Link to comment Share on other sites More sharing options...
leisure Posted March 5, 2006 Author Report Share Posted March 5, 2006 nju vnk zinaat (pasham) cik piem KB lieottaajam waidzees ielaadeet!!! Link to comment Share on other sites More sharing options...
bubu Posted March 5, 2006 Report Share Posted March 5, 2006 Nu tas ta ir skaidrs, ka to tu uzzināsi, bet kam tev to vajag zināt, to jau tev prasa.. Link to comment Share on other sites More sharing options...
leisure Posted March 5, 2006 Author Report Share Posted March 5, 2006 statistikai Link to comment Share on other sites More sharing options...
Kaklz Posted March 5, 2006 Report Share Posted March 5, 2006 Daudz saprātīgāk statistiku būtu ģenerēt nevis šādā veidā, bet vienkārši analizējot apache vai cita web servera logus :P Link to comment Share on other sites More sharing options...
leisure Posted March 5, 2006 Author Report Share Posted March 5, 2006 ok... tnx par padomu!! meegjinaashu burties kk uz to sfeeru :D Link to comment Share on other sites More sharing options...
hmnc Posted March 5, 2006 Report Share Posted March 5, 2006 risinājums ar visa satura kabināšanu vienā mainīgajā manuprāt nav diez cik gudri un efektīvi. a kāpēc nevari ob() lietot visai lapai? Link to comment Share on other sites More sharing options...
bubu Posted March 5, 2006 Report Share Posted March 5, 2006 hmnc: a kāda atšķirība - vai tu stringā visu kabini, vai ob() lieto? Tāpat viss atmiņā bufferējas. Link to comment Share on other sites More sharing options...
hmnc Posted March 5, 2006 Report Share Posted March 5, 2006 arī tiesa, bet tieši šodien biju kkur uzracis krievu materiālus par to kas un cik bremzē sistēmu :) tjip ja raksta $x = 'test'.$test; tad tas ir lēnāk nekā rakstot $x = "test $test"; nu tas tā. pietam kabināt visu vienā variablī ir gaužām neērti imo Link to comment Share on other sites More sharing options...
leisure Posted March 5, 2006 Author Report Share Posted March 5, 2006 bet piemeeram lietojot templeites? tur vnk aizvoto tagus un tad jaw ari ar 1 echo.. tad ar lietot labaak butu ob? Link to comment Share on other sites More sharing options...
Recommended Posts