I am dealing with Windows here.
I know you can use the $_SERVER[\'HTTP_USER_AGENT\'] variable to detect the OS of the browser viewing the page, but is t
$_SERVER[\'HTTP_USER_AGENT\']
I've had luck with bit-shifting, and taking advantage boolean casting.
function is64bit() { return (bool)((1<<32)-1); } // or function is32bit() { return 1<<32 === 1; }