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
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
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
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
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
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
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
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
8 matches
Mail list logo