Re: Bit-size of machine
| From: | Jürgen Wind | Date: | Wed, 27 Jun 2007 18:25:13 +0000 |
| Subject: | Re: Bit-size of machine | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257894@lists.php.net to get a copy of this message | ||
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.html#a11329862
Sent from the PHP - General mailing list archive at Nabble.com.