?php
if ($_GET[act] == phpinfo){
phpinfo();
exit();
}
function IsZend(){
if(defined(OPTIMIZER_VERSION)) return OPTIMIZER_VERSION;
return Enabled;
}
function IsMySQL(){
if(function_exists(mysql_close)){
return mysql_get_client_info();
}
return Enabled;
}
?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
html
head
titleEasy2PHP/title
style
body { font: normal 12px Verdana;}
table{ border-collapse:collapse;}
a:link,a:visited,a:active,a:hover { color:#000; font-family: Arial, Helvetica, sans-serif; }
/style
/head
body
table align=center border=1 cellpadding=0 cellspacing=1 bordercolor=#d1d1d1
trth colspan=2 align=left bgcolor=#FF6600自己写:/th/tr
tr
tdApache:/td
td?=$_SERVER['SERVER_SOFTWARE']?/td
/trtr
tdPHP:/td
td?=PHP_VERSION?/td
/trtr
tdMySQL:/td
td?=IsMySQL()?/td
/trtr
tdPHPMyAdmin:/td
td?=2.11.0?/td
/trtr
tdZend Optimizer:/td
td?=IsZend()?/td
/tr
trth colspan=2 align=left bgcolor=#F6BF1CServer:/th/tr
tr
td服务器时间:/td
td?=gmdate(Y年n月j日 H:i:s,time()+8*3600)?/td
/trtr
td服务器域名/IP地址:/td
td?=$_SERVER['SERVER_NAME'].(.@gethostbyname($_SERVER['SERVER_NAME']).)?/td
/trtr
td服务器解译引擎:/td
td?=$_SERVER['SERVER_SOFTWARE']?/td
/trtr
tdWEB服务端口:/td
td?=$_SERVER['SERVER_PORT']?/td
/trtr
td网站文档目录:/td
td?=$_SERVER[DOCUMENT_ROOT]?/td
/tr
trtd colspan=2 align=centera href=?act=phpinfoGo to PHPInfo/a a href=phpMyAdmin/index.phpGo to PHPMyAdmin/a/td/tr
/table
/body
/html
取消
评论