Created
August 23, 2013 11:56
-
-
Save h4cc/6318527 to your computer and use it in GitHub Desktop.
Check if PHP is running on a 32bit or 64bit architecture.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Switch architecture if needed | |
if(2147483647 == PHP_INT_MAX) { | |
$architecture = 'i386'; | |
}else{ | |
$architecture = 'amd64'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment