Re: [PHP] Bit-size of machine

2007-07-02 Thread Richard Lynch
On Wed, June 27, 2007 10:53 am, Shekar Iyer wrote: > How can one find the bit-size of the system on which PHP > is running. php_uname() does not return bit type MAYBE: 0x){ echo "64-bit"; } else{ echo "32-bit"; } ?> -- Some people have a "gift" link here. Know what I wan

Re: [PHP] Bit-size of machine

2007-06-27 Thread Chetanji
Shekar Iyer wrote: > > How can one find the bit-size of the system on which PHP > is running. php_uname() does not return bit type > > Thanks > Shekar > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > For instance, say you have

Re: [PHP] Bit-size of machine

2007-06-27 Thread Jürgen Wind
Shekar Iyer wrote: > > In other words, How do I find if the system on which > PHP is running is 32-bit or 64-bit programmatically? > echo 'This is a ', is_int(2147483647 + 1) ? 64 : 32 , ' bit box'; HTH -- View this message in context: http://www.nabble.com/Bit-size-of-machine-tf3989360.ht

Re: [PHP] Bit-size of machine

2007-06-27 Thread Stut
Jochem Maas wrote: Stut wrote: Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type A bit is a bit is a bit. It's not a different size on different systems. ho ho ho stut :-) I think he's looking for the 'word' size of

Re: [PHP] Bit-size of machine

2007-06-27 Thread Jochem Maas
Shekar Iyer wrote: > How can one find the bit-size of the system on which PHP > is running. php_uname() does not return bit type ...also this might be of help: getrandmax() > > Thanks > Shekar > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] Bit-size of machine

2007-06-27 Thread Jochem Maas
Stut wrote: > Shekar Iyer wrote: >> How can one find the bit-size of the system on which PHP >> is running. php_uname() does not return bit type > > A bit is a bit is a bit. It's not a different size on different systems. ho ho ho stut :-) I think he's looking for the 'word' size of the CPU (32

Re: [PHP] Bit-size of machine

2007-06-27 Thread Stut
Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type A bit is a bit is a bit. It's not a different size on different systems. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Bit-size of machine

2007-06-27 Thread Shekar Iyer
How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type Thanks Shekar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php