Checking if your code is running on 64-bit PHP

后端 未结 5 1236
梦如初夏
梦如初夏 2020-11-29 05:09

Does anyone know of a way of checking within PHP if the script is running as either 32-bit or 64-bit? Currently I\'m using PHP 5.3.5.

Ideally I\'d like to write a f

5条回答
  •  眼角桃花
    2020-11-29 05:34

    I just looked around and didn't find anything too promising. There's a good chance that you can use $_SERVER['SERVER_SOFTWARE'] to tell (check out what it prints on your system), but making this portable and always accurate is probably not doable.

提交回复
热议问题