本文整理汇总了PHP中isfun函数的典型用法代码示例。如果您正苦于以下问题:PHP isfun函数的具体用法?PHP isfun怎么用?PHP isfun使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了isfun函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isfun
</td>
<td>DBM 数据库:</td>
<td><?php
echo isfun("dbmclose");
?>
</td>
</tr>
<tr>
<td>FilePro 数据库:</td>
<td><?php
echo isfun("filepro_fieldcount");
?>
</td>
<td>SyBase 数据库:</td>
<td><?php
echo isfun("sybase_close");
?>
</td>
</tr>
</table>
<form action="<?php
echo $_SERVER[PHP_SELF] . "#bottom";
?>
" method="post">
<!--MySQL数据库连接检测-->
<table width="100%" cellpadding="3" cellspacing="0" align="center">
<tr><th colspan="3">MySQL数据库连接检测</th></tr>
<tr>
<td width="15%"></td>
<td width="60%">
示例2: isfun
<td>dBase数据库</td>
<td>', isfun("dbase_close"), '</td>
<td>DBM数据库</td>
<td>', isfun("dbmclose"), '</td>
</tr>
<tr>
<td>Hyperwave数据库</td>
<td>', isfun("hw_close"), '</td>
<td>FilePro数据库</td>
<td>', isfun("filepro_fieldcount"), '</td>
</tr>
<tr>
<td>DBA数据库</td>
<td>', isfun("dba_close"), '</td>
<td>Informix数据库</td>
<td>', isfun("ifx_close"), '</td>
</tr>
</table>';
//require(TZ_ROOT.'sys_cs.php');
print <<<EOT
<!-- =============================================================
服务器性能檢測
============================================================== -->
<table width="100%" cellpadding="0" cellspacing="1" border="0" id="m4">
<tr>
<th colspan="5"><p> <a href="#top" class="arrow">5</a> <br />
<a href="#bottom" class="arrow">6</a> </p>
<span>8</span>服务器性能检测<a name="sec4" id="sec4"></a> </th>
</tr>
<tr class="th2" align="center">
示例3: wel
function wel()
{
?>
</head>
<body>
<table class="index tb">
<tr>
<td colspan="4">站点信息</td>
</tr>
<tr>
<td width="90">服务器类型:</td>
<td width="400"><?php
echo PHP_OS;
?>
</td>
<td width="90">脚本解释引擎:</td>
<td><?php
echo $_SERVER['SERVER_SOFTWARE'];
?>
</td>
</tr>
<tr>
<td>站点物理路径:</td>
<td><?php
echo $_SERVER['PATH_TRANSLATED'];
?>
</td>
<td>服务器名:</td>
<td><?php
echo $_SERVER["SERVER_NAME"];
?>
</td>
</tr>
<tr>
<td>访问远程URL allow_url_fopen:</td>
<td><?php
echo getcon("allow_url_fopen");
?>
</td>
<td>访问远程URL curl_init:</td>
<td><?php
echo isfun('curl_init');
?>
</td>
</tr>
<tr>
<td>mb_string 函数支持库:</td>
<td><?php
echo isfun("mb_convert_encoding");
?>
</td>
<td>xml解析DOMDocument:</td>
<td><?php
echo isfun("dom_import_simplexml");
?>
</td>
</tr>
<tr>
<td>单页最大使用内存 memory_limit:</td>
<td><?php
echo getcon("memory_limit");
?>
</td>
<td>POST最大数据量 post_max_size:</td>
<td><?php
echo getcon("post_max_size");
?>
</td>
</tr>
<tr>
<td>最大上传文件 upload_max_filesize:</td>
<td><?php
echo getcon("upload_max_filesize");
?>
</td>
<td>页面最长运行 max_execution_time:</td>
<td><?php
echo getcon("max_execution_time");
?>
</td>
</tr>
<tr>
<td>目录权限检测:</td>
<td colspan=3><?php
echo "/";
if (is_writable("../")) {
echo "<font color=green>OK</font>";
} else {
echo "<font color=red>NO</font>";
}
echo "<br>/inc/";
if (is_writable("../inc/")) {
echo "<font color=green>OK</font>";
} else {
echo "<font color=red>NO</font>";
}
echo "<br>/inc/config.php";
if (is_writable("../inc/config.php")) {
echo "<font color=green>OK</font>";
//.........这里部分代码省略.........
示例4: isfun
</td>
<td>Hyperwave 数据库:</td>
<td><?php
echo isfun("hw_close");
?>
</td>
</tr>
<tr>
<td>Postgre SQL 数据库:</td>
<td><?php
echo isfun("pg_close");
?>
</td>
<td>Informix 数据库:</td>
<td><?php
echo isfun("ifx_close");
?>
</td>
</tr>
</table>
<form action="<?php
echo $_SERVER[PHP_SELF] . "#bottom";
?>
" method="post">
<!--服务器性能检测-->
<table width="100%" cellpadding="3" cellspacing="0" align="center">
<tr><th colspan="5">服务器性能检测</th></tr>
<tr align="center">
<td width="19%">参照对象</td>
<td width="17%">整数运算能力检测<br />(1+1运算300万次)</td>
<td width="17%">浮点运算能力检测<br />(圆周率开平方300万次)</td>
示例5: isfun
<td>壓縮檔支援(Zlib)</td>
<td><?php echo isfun("gzclose"); ?></td>
<td>XML解析</td>
<td><?php echo isfun("xml_set_object"); ?></td>
</tr>
<tr>
<td>FTP</td>
<td><?php echo isfun("ftp_login"); ?></td>
<td>ODBC資料庫連接</td>
<td><?php echo isfun("odbc_close"); ?></td>
</tr>
<tr>
<td>Session支持</td>
<td><?php echo isfun("session_start"); ?></td>
<td>Socket支持</td>
<td><?php echo isfun("socket_accept"); ?></td>
</tr>
</table>
</fieldset>
<div><a href="index.php" class="btn btn-info" style="margin-bottom:10px;">回到控制台</a></div>
</body>
</html>
<?php
/*=============================================================
函數庫
=============================================================*/
/*-------------------------------------------------------------------------------------------------------------
檢測函數支援
--------------------------------------------------------------------------------------------------------------*/
function isfun($funName)
{
示例6:
<td>探针路径</td>
<td><?php echo str_replace('\\','/',__FILE__)?str_replace('\\','/',__FILE__):$_SERVER['SCRIPT_FILENAME'];?></td>
</tr>
</table>
<?if("show"==$sysReShow){?>
<table>
<tr><th colspan="6">服务器实时数据</th></tr>
<tr>
<td width="13%" >服务器当前时间</td>
<td width="37%" ><span id="stime"><?php echo $stime;?></span></td>
<td width="13%" >服务器已运行时间</td>
<td width="37%" colspan="3"><span id="uptime"><?php echo $uptime;?></span></td>
</tr>
<tr>
<td width="13%">CPU型号 [<?php echo $sysInfo['cpu']['num'];?>核]</td>