Check the PHP_INT_SIZE constant. It'll vary based on the size of the register (i.e. 32-bit vs 64-bit).

<?php echo $_SERVER['HTTP_USER_AGENT']; ?>

it is contained in the variable, you could explode that and derive it from that

or

<?php
switch(PHP_INT_SIZE) {case 4:echo '32-bit version of PHP';break;case 8:echo '64-bit version of PHP';break;default:echo 'PHP_INT_SIZE is ' . PHP_INT_SIZE;break;
}

This code snippet will at-least tell you if a 32/64 bit version of PHP is running.

来源: http://stackoverflow.com/questions/6303241/find-windows-32-or-64-bit-using-php

Checking if your code is running on 64-bit PHP相关推荐

  1. Characterizing, exploiting, and detecting DMA code injection vulnerabilities,Eurosys2021

    Characterizing, exploiting, and detecting DMA code injection vulnerabilities in the presence of an I ...

  2. Intel® 64 and IA-32 Architectures Software Developer's Manual CHPTER 8 Multiple-processor management

    第8章 多处理器管理 CHPTER 8 Multiple-processor management 8.1 LOCKED ATOMIC OPERATIONS 锁定的原子操作 8.1.1 Guarant ...

  3. 如何使用Visual Studio Code作为Git的默认编辑器

    本文翻译自:How to use Visual Studio Code as Default Editor for Git When using git at the command line, I ...

  4. 在IIS(64位)上部署WCF服务访问Oracle数据库

    一.安装oracel10g client,必要时请使用administrator用户登录系统后再安装 二.找到安装目录下的bin目录,添加ASP.NET相关的用户权限,之后重启IIS,否则会报告: S ...

  5. Oracle 11G 64位发布出现错误

    错误1:Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur w ...

  6. Windows 7 64位无法在状态码为0xc0000225的VirtualBox / Linux上安装

    Windows 7 64-bit fails to install on VirtualBox on Linux with status code 0xc0000225: Windows 7 64位无 ...

  7. [转载]通过 call gate 访问目标 code segment

    直接 call / jmp 目标 code segment 不能改变当前的 CPL,若要 call / jmp 高权限的 code segment 必须使用 call gate,在 x86 下还要可以 ...

  8. stm32中堆、栈、flash、ROM、RAM、bss段、data段、text段、Code、Ro-data、 ZI-data、RW-data简介

    1. 堆.栈.flash.ROM.RAM.bss段.data段.text段.Code.Ro-data ZI-data.RW-data的区别? 1.1 堆.栈简介 堆栈是指在stm32启动文件中定义的那 ...

  9. xp安装64位vista_使用Vista 64作为打印服务器的其他自动打印机驱动程序安装

    xp安装64位vista Now that I'm running Vista 64, while most everything is running very smoothly, there's ...

最新文章

  1. php点击按钮加载控制器,php – Codeigniter 3自动加载控制器
  2. Ellipse(椭圆)
  3. 解决雷达图文字显示不全问题
  4. 数据算法——Spark二次排序
  5. windows无法连接到打印机 操作失败,错误为0x00000002 解决方案
  6. Python编程基础:第四十二节 多重继承Multi Level Inheritance
  7. Atom JS 代码智能提示补全
  8. Lower Power with CPF(三)
  9. [NHibernate] NHibernate对象关系映射工具了解
  10. 天池 在线编程 队列检查(排序)
  11. Java即时类| 带示例的compareTo()方法
  12. B端表格设计实战指南
  13. git遇到的问题 .Git: There is no tracking information for the current branch.
  14. HDU 6330--Visual Cube(构造,计算)
  15. Idea Java开发必备插件
  16. linux下的MBR(msdos)分区与格式化----fdisk mkfs
  17. 快手磁力金牛和小店通的区别
  18. 一位前端新人的面试经验
  19. gRPC服务发现负载均衡
  20. 操作系统----校招笔试面试常考内容总结

热门文章

  1. 数列分段Section I(洛谷-P1181)
  2. C语言 strspn函数实现
  3. Le-net网络总结
  4. eclipselink mysql_Eclipselink更新现有表
  5. java 比较器类_java常用类——比较器
  6. sql 不等于符号_SQL 必备知识 - 第一弹
  7. adb刷入第三方recovery_橙狐Recovery一款另类功能丰富的第三方刷机工具支持MIUI OTA...
  8. python 操作excel 教程_Python学习笔记(十六)—Python操作Excel
  9. QT配置OpenCV(二):成功
  10. k8s系统架构图(二)