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\']
Or use PHP COM to call wmi
$obj = new COM('winmgmts://localhost/root/CIMV2'); $wmi = $obj->ExecQuery('Select * from Win32_OperatingSystem'); foreach($wmi as $wmiCall) { $architecture = $wmiCall->OSArchitecture; }