Re: [PHP] convert byte to MB

2006-08-03 Thread Porpoise
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

2006-08-03 Thread Adam Zey

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

2006-07-25 Thread weetat

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

2006-07-25 Thread André Medeiros

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

2006-07-25 Thread Andrew Brampton

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

2006-07-25 Thread cajbecu
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

2006-07-25 Thread Jochem Maas


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

2006-07-25 Thread Andrei

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

2006-07-25 Thread Austin Denyer
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