I tried using <?php echo php_uname("m"); ?>
, it returns i586 but I am on Windows 7 64 bit which I could see in My Computers Properties. So I am expecting x86_64 in output. Does any one know how to determine OS Architecture in PHP ?
I want the same thing for Mac OS X too. Any help would be appreciated.
Here is a php solution :)
echo strlen(decbin(~0));
more simple
echo 8 * PHP_INT_SIZE;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With