使用PHP查找Windows 32或64位 [英] Find Windows 32 or 64 bit using PHP

查看:119
本文介绍了使用PHP查找Windows 32或64位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获取窗口处理器位? 我想使用php查找窗口处理器位? 我有编码来查找操作系统和其他属性. 好心的建议. 谢谢 - 哈恩

Is it possible to get the window processor bit?? I want to find the window processor bit using php?? I have coding to find the operating system and other properties. Kindly advice. Thanks - Haan

推荐答案

<?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;
}

此代码段至少会告诉您是否正在运行32/64位版本的PHP.

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

这篇关于使用PHP查找Windows 32或64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆