header("content-Type: text/html; charset=gb2312");
$version = "1.3.6";
/*
+----------------------------------------------------------------------
| **如果你看到了这里,说明你的服务器不支持PHP**
+----------------------------------------------------------------------
| 文件名: 废墟のPHP探针
+----------------------------------------------------------------------
| Copyright 2003-2005 WapCity 版权所有并保留所有版权
+----------------------------------------------------------------------
| 本探针制作时参考了其他一些探针
| 此向其作者表示感谢
+----------------------------------------------------------------------
| 作者: 废墟の复甦 < [email][email protected][/email] > [ QQ:1616676 ]
+----------------------------------------------------------------------
*/
extract($_GET);extract($_POST);
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$page_time_start=getmicrotime();
//脚本运行时间
function addTime()
{
$time_start=getmicrotime();
for($index=0;$index<=500000;$index++);
{
$count=1+1;
}
$time_end=getmicrotime();
$time=$time_end-$time_start;
$time=round($time*1000);
$time="$time";
return($time);
}//END FUNCTION
function sqrtTime()
{
$test=pi();
$time_start=getmicrotime();
for($index=0;$index<=500000;$index++);
{
sqrt($test);
}
$time_end=getmicrotime();
$time=$time_end-$time_start;
$time=round($time*1000);
$time="$time";
return($time);
}//END FUNCTION
if ("phpinfo" == $testinfo)
{
phpinfo();
exit;
}//END IF
{
phpinfo();
exit;
}//END IF
function echo_info($str)
{
echo "";
}
{
echo "";
}
function temp($temp)
{
if($temp==1)
{
$s='支持√';
}
else
{
$s='不支持×';
}
return $s;
}
{
if($temp==1)
{
$s='支持√';
}
else
{
$s='不支持×';
}
return $s;
}
//服务器时间比较
$mtime[] = array("参照机器","整数运算,50万次“1+1”","浮点运算,50万次平方根");
$mtime[] = array("公司电脑 (P4/1.7G 256M Win2k)","404 毫秒","398 毫秒");
$mtime[] = array("我的电脑 (AMD1800+ 512M WinXP sp2)","285 毫秒","280 毫秒");
$mtime[] = array("chromehost.com (2004-5-14)","324 毫秒","314 毫秒");
$mtime[] = array(" [url]www.psychz.net[/url] (2004-5-14)","160 毫秒","152 毫秒");
$mtime[] = array("cun.jp (2004-5-14)","733 毫秒","579 毫秒");
$mtime[] = array("恩博在线 商务型(L)-200M (2004-5-14)","554 毫秒","551 毫秒");
//当前主机
$mtime[] = array("当前这台服务器",addTime()." 毫秒",sqrtTime()." 毫秒");
$mtime[] = array("参照机器","整数运算,50万次“1+1”","浮点运算,50万次平方根");
$mtime[] = array("公司电脑 (P4/1.7G 256M Win2k)","404 毫秒","398 毫秒");
$mtime[] = array("我的电脑 (AMD1800+ 512M WinXP sp2)","285 毫秒","280 毫秒");
$mtime[] = array("chromehost.com (2004-5-14)","324 毫秒","314 毫秒");
$mtime[] = array(" [url]www.psychz.net[/url] (2004-5-14)","160 毫秒","152 毫秒");
$mtime[] = array("cun.jp (2004-5-14)","733 毫秒","579 毫秒");
$mtime[] = array("恩博在线 商务型(L)-200M (2004-5-14)","554 毫秒","551 毫秒");
//当前主机
$mtime[] = array("当前这台服务器",addTime()." 毫秒",sqrtTime()." 毫秒");
/*获取服务器信息*/
$info[] = array("域名","Domain Name",$_SERVER['SERVER_NAME']." - ".getenv(SERVER_ADDR));//主机名
$info[] = array("服务器端口","Server Port",getenv(SERVER_PORT));//端口
$info[] = array("服务器操作系统","Operating System",PHP_OS); //服务器操作系统
$info[] = array("WEB服务器版本","Web Server Version",$_SERVER['SERVER_SOFTWARE']); //web服务器版本
$info[] = array("PHP版本","PHP Version",PHP_VERSION);//php版本
$info[] = array("服务器语种","Server Language",getenv("HTTP_ACCEPT_LANGUAGE")); //服务器语种
$info[] = array("ZEND版本","ZEND Version",zend_version());
$info[] = array("绝对路径","Full path",$_SERVER['DOCUMENT_ROOT']. "
".$_SERVER['$PATH_INFO']); //绝对路径
$info[] = array("服务器剩余空间","Disk Free Space",intval(diskfreespace(".") / (1024 * 1024))."M"); //服务器空间大小
$info[] = array("服务器时间","Server Current Time",date("n月j日H点i分s秒")); //服务器时间
//$info[] = array("","",get_current_user()); //用户
//$info[] = array("","",isset($_SERVER["SERVER_ADMIN"])?"$_SERVER[SERVER_ADMIN]":"get_cfg_var(sendmail_from)"); //管理员邮箱
$info[] = array("域名","Domain Name",$_SERVER['SERVER_NAME']." - ".getenv(SERVER_ADDR));//主机名
$info[] = array("服务器端口","Server Port",getenv(SERVER_PORT));//端口
$info[] = array("服务器操作系统","Operating System",PHP_OS); //服务器操作系统
$info[] = array("WEB服务器版本","Web Server Version",$_SERVER['SERVER_SOFTWARE']); //web服务器版本
$info[] = array("PHP版本","PHP Version",PHP_VERSION);//php版本
$info[] = array("服务器语种","Server Language",getenv("HTTP_ACCEPT_LANGUAGE")); //服务器语种
$info[] = array("ZEND版本","ZEND Version",zend_version());
$info[] = array("绝对路径","Full path",$_SERVER['DOCUMENT_ROOT']. "
".$_SERVER['$PATH_INFO']); //绝对路径
$info[] = array("服务器剩余空间","Disk Free Space",intval(diskfreespace(".") / (1024 * 1024))."M"); //服务器空间大小
$info[] = array("服务器时间","Server Current Time",date("n月j日H点i分s秒")); //服务器时间
//$info[] = array("","",get_current_user()); //用户
//$info[] = array("","",isset($_SERVER["SERVER_ADMIN"])?"$_SERVER[SERVER_ADMIN]":"get_cfg_var(sendmail_from)"); //管理员邮箱
/*PHP基本特性*/
$dis_func = get_cfg_var("disable_functions");
$php[] = array("PHP信息","PHPINFO",ereg("phpinfo",$dis_func)?"不支持×":"支持√点此查看PHPINFO详细信息");
$php[] = array("自定义全局变量","register_globals",temp(get_cfg_var("register_globals")));
$php[] = array("脚本运行可占最大内存","memory_limit",get_cfg_var("memory_limit")?get_cfg_var("memory_limit"):"无"); //单个脚本运行时可占用的最大内存
$php[] = array("脚本上传文件大小限制","upload_max_filesize",get_cfg_var("upload_max_filesize")?get_cfg_var("upload_max_filesize"):"不允许上传附件"); //用PHP脚本上传文件大小限制
$php[] = array("被屏蔽的函数","disable_functions",get_cfg_var("disable_functions")?get_cfg_var("disable_functions"):"无"); //被屏蔽的函数
$php[] = array("POST方法提交限制","post_max_size",get_cfg_var("post_max_size")); //post方法提交内容限制
$php[] = array("脚本超时时间","max_execution_time",get_cfg_var("max_execution_time")."秒"); //脚本超时时间
$php[] = array("显示错误信息","display_errors",temp(get_cfg_var("display_errors")));
$dis_func = get_cfg_var("disable_functions");
$php[] = array("PHP信息","PHPINFO",ereg("phpinfo",$dis_func)?"不支持×":"支持√点此查看PHPINFO详细信息");
$php[] = array("自定义全局变量","register_globals",temp(get_cfg_var("register_globals")));
$php[] = array("脚本运行可占最大内存","memory_limit",get_cfg_var("memory_limit")?get_cfg_var("memory_limit"):"无"); //单个脚本运行时可占用的最大内存
$php[] = array("脚本上传文件大小限制","upload_max_filesize",get_cfg_var("upload_max_filesize")?get_cfg_var("upload_max_filesize"):"不允许上传附件"); //用PHP脚本上传文件大小限制
$php[] = array("被屏蔽的函数","disable_functions",get_cfg_var("disable_functions")?get_cfg_var("disable_functions"):"无"); //被屏蔽的函数
$php[] = array("POST方法提交限制","post_max_size",get_cfg_var("post_max_size")); //post方法提交内容限制
$php[] = array("脚本超时时间","max_execution_time",get_cfg_var("max_execution_time")."秒"); //脚本超时时间
$php[] = array("显示错误信息","display_errors",temp(get_cfg_var("display_errors")));
/*常见组件*/
$obj[] = array("SMTP支持","smtp",temp(get_magic_quotes_gpc("smtp")));//SMTP
$obj[] = array("PHP安全模式","Safe_mode",temp(get_cfg_var("safe_mode"))); //PHP安全模式(Safe_mode)
$obj[] = array("XML 解析函数库","XML Support",temp(get_magic_quotes_gpc("XML Support")));//XML 支持
$obj[] = array("FTP 文件传输函数库","FTP support",temp(get_magic_quotes_gpc("FTP support")));//FTP 支持
$obj[] = array("允许使用URL打开文件","allow_url_fopen",temp(get_cfg_var("allow_url_fopen")));//允许使用URL打开文件
$obj[] = array("动态链接库","enable_dl",temp(get_cfg_var("enable_dl")));//动态链接库
$obj[] = array("SMTP支持","smtp",temp(get_magic_quotes_gpc("smtp")));//SMTP
$obj[] = array("PHP安全模式","Safe_mode",temp(get_cfg_var("safe_mode"))); //PHP安全模式(Safe_mode)
$obj[] = array("XML 解析函数库","XML Support",temp(get_magic_quotes_gpc("XML Support")));//XML 支持
$obj[] = array("FTP 文件传输函数库","FTP support",temp(get_magic_quotes_gpc("FTP support")));//FTP 支持
$obj[] = array("允许使用URL打开文件","allow_url_fopen",temp(get_cfg_var("allow_url_fopen")));//允许使用URL打开文件
$obj[] = array("动态链接库","enable_dl",temp(get_cfg_var("enable_dl")));//动态链接库
/*其他组件*/
$qobj[] = array("IMAP 电子邮件系统函数库","IMAP, POP3 and NNTP Functions",temp(function_exists("imap_close")));//IMAP电子邮件系统
$qobj[] = array("历法运算函数库","Calendar Functions",temp(function_exists("JDToGregorian")));//历法
$qobj[] = array("压缩文件函数库(Zlib)","Zlib Compression Functions",temp(function_exists("gzclose"))); //压缩文件支持(Zlib)
$qobj[] = array("Session支持","Session Handling Functions",temp(function_exists("session_start"))); //Session支持
$qobj[] = array("Socket支持","Socket Functions",temp(function_exists("fsockopen"))); //Socket支持
$qobj[] = array("正则表达式函数库","PREL",temp(function_exists("preg_match")));//PREL相容语法 PCRE
@$gdInfo=gd_info();
$qobj[] = array("图像函数库","GD Library",function_exists("p_w_picpathline")==1?temp(function_exists("p_w_picpathline")).$gdInfo["GD Version"]:temp(function_exists("p_w_picpathline")));//图形处理 GD Library
$qobj[] = array("FDF表单资料格式函数库","Forms Data Format Functions",temp(function_exists("FDF_close")));//FDF表单资料格式
$qobj[] = array("Iconv编码转换","iconv Functions",temp(function_exists("iconv")));//ICONV
$qobj[] = array("SNMP网络管理协议","SNMP Functions",temp(function_exists("snmpget")));//SNMP网络管理协议
$qobj[] = array("IMAP 电子邮件系统函数库","IMAP, POP3 and NNTP Functions",temp(function_exists("imap_close")));//IMAP电子邮件系统
$qobj[] = array("历法运算函数库","Calendar Functions",temp(function_exists("JDToGregorian")));//历法
$qobj[] = array("压缩文件函数库(Zlib)","Zlib Compression Functions",temp(function_exists("gzclose"))); //压缩文件支持(Zlib)
$qobj[] = array("Session支持","Session Handling Functions",temp(function_exists("session_start"))); //Session支持
$qobj[] = array("Socket支持","Socket Functions",temp(function_exists("fsockopen"))); //Socket支持
$qobj[] = array("正则表达式函数库","PREL",temp(function_exists("preg_match")));//PREL相容语法 PCRE
@$gdInfo=gd_info();
$qobj[] = array("图像函数库","GD Library",function_exists("p_w_picpathline")==1?temp(function_exists("p_w_picpathline")).$gdInfo["GD Version"]:temp(function_exists("p_w_picpathline")));//图形处理 GD Library
$qobj[] = array("FDF表单资料格式函数库","Forms Data Format Functions",temp(function_exists("FDF_close")));//FDF表单资料格式
$qobj[] = array("Iconv编码转换","iconv Functions",temp(function_exists("iconv")));//ICONV
$qobj[] = array("SNMP网络管理协议","SNMP Functions",temp(function_exists("snmpget")));//SNMP网络管理协议
/*数据库信息*/
$sql[] = array("MySQL 数据库","",temp(function_exists("mysql_close"))); //mysql数据库
$sql[] = array("ODBC 数据库","",temp(function_exists("odbc_close"))); //odbc数据库
$sql[] = array("Oracle 数据库","",temp(function_exists("ora_close"))); //ora数据库
$sql[] = array("Oracle 8 数据库","",temp(function_exists("OCILogOff")));//Oracle 8 数据库
$sql[] = array("SQL Server 数据库","",temp(function_exists("mssql_close")));//SQL Server数据库
$sql[] = array("mSQL 数据库","",temp(function_exists("msql_close")));//msql数据库
$sql[] = array("Hyperwave 数据库","",temp(function_exists("hw_close")));//Hyperwave数据库
$sql[] = array("dBase 数据库","",temp(function_exists("dbase_close")));//dbase数据库
$sql[] = array("PostgreSQL 数据库","",temp(function_exists("pg_connect")));//PostgreSQL数据库
$sql[] = array("firePro 数据库","",temp(function_exists("filepro")));//firePro数据库
$sql[] = array("MySQL 数据库","",temp(function_exists("mysql_close"))); //mysql数据库
$sql[] = array("ODBC 数据库","",temp(function_exists("odbc_close"))); //odbc数据库
$sql[] = array("Oracle 数据库","",temp(function_exists("ora_close"))); //ora数据库
$sql[] = array("Oracle 8 数据库","",temp(function_exists("OCILogOff")));//Oracle 8 数据库
$sql[] = array("SQL Server 数据库","",temp(function_exists("mssql_close")));//SQL Server数据库
$sql[] = array("mSQL 数据库","",temp(function_exists("msql_close")));//msql数据库
$sql[] = array("Hyperwave 数据库","",temp(function_exists("hw_close")));//Hyperwave数据库
$sql[] = array("dBase 数据库","",temp(function_exists("dbase_close")));//dbase数据库
$sql[] = array("PostgreSQL 数据库","",temp(function_exists("pg_connect")));//PostgreSQL数据库
$sql[] = array("firePro 数据库","",temp(function_exists("filepro")));//firePro数据库
function echoInfo($in,$tb=0)
{
$tw = $tb != 1 ? array("20%", "30%", "50%") : array("50%", "25%", "25%");
for ($i = 0; $i < count($in); $i++)
{
$tbClass = $i%2 == 0 ? "bTable" : "cTable";
$rs .= " {$in[$i][0]}
{$in[$i][1]}
{$in[$i][2]} ";
}
return $rs;
}
function echoTable($arr)
{
for ($i = 0; $i < count($arr); $i++)
{
$rs .= '
';
}
return $rs;
}
$arr[] = array("服务器相关参数",echoInfo($info));
$arr[] = array("PHP基本参数",echoInfo($php));
$arr[] = array("常见组件信息",echoInfo($obj));
$arr[] = array("其他组件信息",echoInfo($qobj));
$arr[] = array("数据库支持信息",echoInfo($sql));
$arr[] = array("服务器性能测试",echoInfo($mtime,1));
$page = echoTable($arr);
?>
废墟のPHP探针V=$version?>
{
$tw = $tb != 1 ? array("20%", "30%", "50%") : array("50%", "25%", "25%");
for ($i = 0; $i < count($in); $i++)
{
$tbClass = $i%2 == 0 ? "bTable" : "cTable";
$rs .= "
}
return $rs;
}
function echoTable($arr)
{
for ($i = 0; $i < count($arr); $i++)
{
$rs .= '
■'.$arr[$i][0].':::... |
}
return $rs;
}
$arr[] = array("服务器相关参数",echoInfo($info));
$arr[] = array("PHP基本参数",echoInfo($php));
$arr[] = array("常见组件信息",echoInfo($obj));
$arr[] = array("其他组件信息",echoInfo($qobj));
$arr[] = array("数据库支持信息",echoInfo($sql));
$arr[] = array("服务器性能测试",echoInfo($mtime,1));
$page = echoTable($arr);
?>
废墟のPHP探针 PHP ENV v =$version?> Server Environment Probe |
出现以下情况即表示您的空间不支持PHP: 1、访问本文件时提示下载。 2、访问本文件时看到类似“<?php?>”的文字。 | 底部↓ |
=$page?>
■函数支持情况检测:::... |
■邮件发送支持情况检测:::... |
■MySQL数据库连接测试:::... |
■PostgreSQL数据库连接测试:::... |
$page_time_end=getmicrotime(); $pageTime = round(($page_time_end-$page_time_start)*1000000)/1000; echo "页面执行时间".$pageTime."毫秒"; ?> 欢迎访问 [url]http://wapcity.org.ru[/url] [url]http://id002.com [/url] 本程序由废墟の复甦 [email][email protected][/email] 编写,转载时请保留这些信息 |