andre Posted October 7, 2003 Report Posted October 7, 2003 ja man ir strings (garsh, dazhreiz iis), kaa lai es izvadu taa size in kb ???
Little_Hacker Posted October 7, 2003 Report Posted October 7, 2003 negribeetu izblomeeties, bet tjip esot arii simboli kas aiznjem 2us baitus, vismaz taaa man staastija Kaklz..
K|NG Posted October 8, 2003 Report Posted October 8, 2003 <?php $string = 'ADJAKL;JDAjdakl;djAD'; //20 baiti echo strlen($string)/1024 * 1024; // baitos ?>
Kaklz Posted October 8, 2003 Report Posted October 8, 2003 negribeetu izblomeeties, bet tjip esot arii simboli kas aiznjem 2us baitus, vismaz taaa man staastija Kaklz.. tas ar Unicode paveidiem ;)
Roze Posted October 8, 2003 Report 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
K|NG Posted October 8, 2003 Report 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 ! ;)
Roze Posted October 8, 2003 Report 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..
K|NG Posted October 8, 2003 Report 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
Roze Posted October 8, 2003 Report 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..
K|NG Posted October 8, 2003 Report 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; :) ;)
Roze Posted October 8, 2003 Report Posted October 8, 2003 Tas nav korekti.. ja gribaas apalju tad: round(strlen($string)/1024); :)
Recommended Posts