Re: [PHP] convert byte to MB
Austin Denyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What's with the blank messages?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert byte to MB
Porpoise wrote: Austin Denyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What's with the blank messages?? His message wasn't blank, he sent this: Andrei wrote: So what u'r trying to say is that we should use KiB and not KB for kilobytes? That's funny! I know a lot of people who do just that. Regards, Austin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] convert byte to MB
Hi all , I have data which have value in bytes for example , $bytes = 33554432; How to convert this to MB ? THanks - weetat (PHP Novice) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert byte to MB
divide by 1024, and you'll get KB divide again by 1024 and you'll get MB same for GB, TB, etc On 7/25/06, weetat [EMAIL PROTECTED] wrote: Hi all , I have data which have value in bytes for example , $bytes = 33554432; How to convert this to MB ? THanks - weetat (PHP Novice) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert byte to MB
Divide by 1024 and you get KiB Divide by 1000 and you get KB Read: http://physics.nist.gov/cuu/Units/binary.html Andrew - Original Message - From: André Medeiros [EMAIL PROTECTED] To: weetat [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, July 25, 2006 12:41 PM Subject: Re: [PHP] convert byte to MB divide by 1024, and you'll get KB divide again by 1024 and you'll get MB same for GB, TB, etc On 7/25/06, weetat [EMAIL PROTECTED] wrote: Hi all , I have data which have value in bytes for example , $bytes = 33554432; How to convert this to MB ? THanks - weetat (PHP Novice) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert byte to MB
weetat wrote: Hi all , I have data which have value in bytes for example , $bytes = 33554432; How to convert this to MB ? THanks - weetat (PHP Novice) 1GB = 1024 * 1MB = 1024 * (1024 * 1KB) = 1024 * (1024 * (1024 * 1byte)) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [on the wrong end of someone else's bad day] Re: [PHP] convert byte to MB
weetat wrote: Hi all , I have data which have value in bytes for example , $bytes = 33554432; How to convert this to MB ? how to read the manual thanks. http://php.net/filesize no doubt you won't bother to read any of the user notes and therefore miss *at least* 4 different implementations that do what you want - not to mention that if you study the relevant code in the user notes you won't read you might even learn how to count in bytes (which is IT 101 in anyone's book). THanks - weetat (PHP Novice) your website indicates your a professional, competent, bla bla company - might I suggest that even the slightest ammount of competence precludes the ability to STFW and RTFM (and the actually doing so); novice or no novice. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert byte to MB
So what u'r trying to say is that we should use KiB and not KB for kilobytes? That's funny! Andrei Andrew Brampton wrote: Divide by 1024 and you get KiB Divide by 1000 and you get KB Read: http://physics.nist.gov/cuu/Units/binary.html Andrew - Original Message - From: André Medeiros [EMAIL PROTECTED] To: weetat [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, July 25, 2006 12:41 PM Subject: Re: [PHP] convert byte to MB divide by 1024, and you'll get KB divide again by 1024 and you'll get MB same for GB, TB, etc On 7/25/06, weetat [EMAIL PROTECTED] wrote: Hi all , I have data which have value in bytes for example , $bytes = 33554432; How to convert this to MB ? THanks - weetat (PHP Novice) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert byte to MB
Andrei wrote: So what u'r trying to say is that we should use KiB and not KB for kilobytes? That's funny! I know a lot of people who do just that. Regards, Austin. signature.asc Description: OpenPGP digital signature