andre Posted October 7, 2003 Report Share Posted October 7, 2003 ja man ir strings (garsh, dazhreiz iis), kaa lai es izvadu taa size in kb ??? Link to comment Share on other sites More sharing options...
Roze Posted October 7, 2003 Report Share Posted October 7, 2003 <? echo strlen($string)/1024; ?> Link to comment Share on other sites More sharing options...
Little_Hacker Posted October 7, 2003 Report Share Posted October 7, 2003 negribeetu izblomeeties, bet tjip esot arii simboli kas aiznjem 2us baitus, vismaz taaa man staastija Kaklz.. Link to comment Share on other sites More sharing options...
K|NG Posted October 8, 2003 Report Share Posted October 8, 2003 <?php $string = 'ADJAKL;JDAjdakl;djAD'; //20 baiti echo strlen($string)/1024 * 1024; // baitos ?> Link to comment Share on other sites More sharing options...
Kaklz Posted October 8, 2003 Report Share Posted October 8, 2003 negribeetu izblomeeties, bet tjip esot arii simboli kas aiznjem 2us baitus, vismaz taaa man staastija Kaklz.. tas ar Unicode paveidiem ;) Link to comment Share on other sites More sharing options...
Roze Posted October 8, 2003 Report Share Posted October 8, 2003 <?php$string = 'ADJAKL;JDAjdakl;djAD'; //20 baiti echo strlen($string)/1024 * 1024; // baitos ?> Ehehehe shitais ir dienas kods ('code of the day') :D Vispirms izdalam ar 1024 un tad pareizinam ar 1024 Kur logjika :P Link to comment Share on other sites More sharing options...
K|NG Posted October 8, 2003 Report Share Posted October 8, 2003 <?php$string = 'ADJAKL;JDAjdakl;djAD'; //20 baiti echo strlen($string)/1024 * 1024; // baitos ?> Ehehehe shitais ir dienas kods ('code of the day') :D Vispirms izdalam ar 1024 un tad pareizinam ar 1024 Kur logjika :P A nu Tu nostestē, un ta bļau ! ;) Link to comment Share on other sites More sharing options...
Roze Posted October 8, 2003 Report Share Posted October 8, 2003 A nu Tu nostestē, un ta bļau ! ;) Nee nu manu nespratni radiija vieta '/1024*1024' Kapeec tad neuzreiz echo strlen($string); // baitos ??? Jebshu es varbuut tieshaam neredzu kur ir jeega.. Link to comment Share on other sites More sharing options...
K|NG Posted October 8, 2003 Report Share Posted October 8, 2003 A nu Tu nostestē, un ta bļau ! ;) Nee nu manu nespratni radiija vieta '/1024*1024' Kapeec tad neuzreiz echo strlen($string); // baitos ??? Jebshu es varbuut tieshaam neredzu kur ir jeega.. Nu a es akal nesaprotu kapeec jaadala ;) echo strlen($string)/1024 tapeec arii pareizinaaju * 1024 :D tas pac vien buus kas: echo strlen($string) :D Link to comment Share on other sites More sharing options...
Roze Posted October 8, 2003 Report Share Posted October 8, 2003 Nu a es akal nesaprotu kapeec jaadala ;) Aaa bet izlasiit veelreiz jautaajumu.. Ja nesanaak tad '.. kaa lai es izvadu taa size in kb ??? ' Taatad dalam ar 1024.. Link to comment Share on other sites More sharing options...
K|NG Posted October 8, 2003 Report Share Posted October 8, 2003 Nu a es akal nesaprotu kapeec jaadala ;) Aaa bet izlasiit veelreiz jautaajumu.. Ja nesanaak tad '.. kaa lai es izvadu taa size in kb ??? ' Taatad dalam ar 1024.. Ak taa kb nu tad jaa, bet baigi neapaljsh cipars sanaak nu labi ;) ja kas ja vajag apalju ciparu tad: strlen($string)/1000; :) ;) Link to comment Share on other sites More sharing options...
Roze Posted October 8, 2003 Report Share Posted October 8, 2003 Tas nav korekti.. ja gribaas apalju tad: round(strlen($string)/1024); :) Link to comment Share on other sites More sharing options...
Recommended Posts