Checking if your code is running on 64-bit PHP
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相关推荐
- Characterizing, exploiting, and detecting DMA code injection vulnerabilities,Eurosys2021
Characterizing, exploiting, and detecting DMA code injection vulnerabilities in the presence of an I ...
- 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 ...
- 如何使用Visual Studio Code作为Git的默认编辑器
本文翻译自:How to use Visual Studio Code as Default Editor for Git When using git at the command line, I ...
- 在IIS(64位)上部署WCF服务访问Oracle数据库
一.安装oracel10g client,必要时请使用administrator用户登录系统后再安装 二.找到安装目录下的bin目录,添加ASP.NET相关的用户权限,之后重启IIS,否则会报告: S ...
- Oracle 11G 64位发布出现错误
错误1:Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur w ...
- Windows 7 64位无法在状态码为0xc0000225的VirtualBox / Linux上安装
Windows 7 64-bit fails to install on VirtualBox on Linux with status code 0xc0000225: Windows 7 64位无 ...
- [转载]通过 call gate 访问目标 code segment
直接 call / jmp 目标 code segment 不能改变当前的 CPL,若要 call / jmp 高权限的 code segment 必须使用 call gate,在 x86 下还要可以 ...
- 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启动文件中定义的那 ...
- xp安装64位vista_使用Vista 64作为打印服务器的其他自动打印机驱动程序安装
xp安装64位vista Now that I'm running Vista 64, while most everything is running very smoothly, there's ...
最新文章
- php点击按钮加载控制器,php – Codeigniter 3自动加载控制器
- Ellipse(椭圆)
- 解决雷达图文字显示不全问题
- 数据算法——Spark二次排序
- windows无法连接到打印机 操作失败,错误为0x00000002 解决方案
- Python编程基础:第四十二节 多重继承Multi Level Inheritance
- Atom JS 代码智能提示补全
- Lower Power with CPF(三)
- [NHibernate] NHibernate对象关系映射工具了解
- 天池 在线编程 队列检查(排序)
- Java即时类| 带示例的compareTo()方法
- B端表格设计实战指南
- git遇到的问题 .Git: There is no tracking information for the current branch.
- HDU 6330--Visual Cube(构造,计算)
- Idea Java开发必备插件
- linux下的MBR(msdos)分区与格式化----fdisk mkfs
- 快手磁力金牛和小店通的区别
- 一位前端新人的面试经验
- gRPC服务发现负载均衡
- 操作系统----校招笔试面试常考内容总结
热门文章
- 数列分段Section I(洛谷-P1181)
- C语言 strspn函数实现
- Le-net网络总结
- eclipselink mysql_Eclipselink更新现有表
- java 比较器类_java常用类——比较器
- sql 不等于符号_SQL 必备知识 - 第一弹
- adb刷入第三方recovery_橙狐Recovery一款另类功能丰富的第三方刷机工具支持MIUI OTA...
- python 操作excel 教程_Python学习笔记(十六)—Python操作Excel
- QT配置OpenCV(二):成功
- k8s系统架构图(二)