Can PHP tell if the server os is 64-bit?

后端 未结 12 596
北荒
北荒 2020-12-09 08:52

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

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 09:20

    A bit of a late answer, but if you just want to determine the word size, you can use this: (log(PHP_INT_MAX + 1, 2) + 1)

提交回复
热议问题