当前位置: 首页>>代码示例>>PHP>>正文


PHP checking函数代码示例

本文整理汇总了PHP中checking函数的典型用法代码示例。如果您正苦于以下问题:PHP checking函数的具体用法?PHP checking怎么用?PHP checking使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了checking函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: isset

include SITE_ROOT . DS . 'public' . DS . 'layouts' . DS . "nav.php";
?>

<?php 
echo isset($valid) ? $valid->form_errors() : "";
echo isset($valid) ? $valid->form_warnings() : "";
?>

<?php 
if (isset($message)) {
    echo output_message($message);
}
?>

<?php 
checking(false);
?>







<h4 class="text-center"><a href="<?php 
echo $_SERVER["PHP_SELF"];
?>
"><?php 
echo $page . " " . $class_name::$page_name;
?>
</a> </h4>
开发者ID:kamy333,项目名称:rajah,代码行数:31,代码来源:edit_client.php

示例2: quietechorun

$redir = $ac['quiet'] == 'yes' ? ' > ' . (is_windows() ? 'nul' : '/dev/null') : '';
quietechorun("\"{$ac['PHP']}\" -q \"{$ac['basedir']}/scripts/file-entities.php\"{$redir}");
checking("for if we should generate a simplified file");
if ($ac["GENERATE"] != "no") {
    if (!file_exists($ac["GENERATE"])) {
        checkerror("Can't find {$ac["GENERATE"]}");
    }
    $tmp = realpath($ac["GENERATE"]);
    $ac["GENERATE"] = str_replace($ac["ROOTDIR"] . $ac["LANGDIR"], "", $tmp);
    $str = "\n<!ENTITY developer.include.file SYSTEM 'file:///{$ac["GENERATE"]}'>";
    file_put_contents("{$ac["basedir"]}/entities/file-entities.ent", $str, FILE_APPEND);
    $ac["INPUT_FILENAME"] = "developer.template.xml";
    $ac["FORCE_DOM_SAVE"] = "yes";
}
checkvalue($ac["GENERATE"]);
checking('whether to save an invalid .manual.xml');
checkvalue($ac['FORCE_DOM_SAVE']);
echo "Loading and parsing {$ac["INPUT_FILENAME"]}... ";
flush();
$dom = new DOMDocument();
// realpath() is important: omitting it causes severe performance degradation
// and doubled memory usage on Windows.
$didLoad = $dom->load(realpath("{$ac['srcdir']}/{$ac["INPUT_FILENAME"]}"), $LIBXML_OPTS);
// Check if the XML was simply broken, if so then just bail out
if ($didLoad === false) {
    echo "failed.\n";
    print_xml_errors();
    errors_are_bad(1);
}
echo "done.\n";
echo "Validating {$ac["INPUT_FILENAME"]}... ";
开发者ID:guoyu07,项目名称:NYAF,代码行数:31,代码来源:configure.php

示例3: checking

}
// }}}
checking(_T("Extension Compatibility"));
// {{{
$loadedZendExtensions = get_loaded_extensions(true);
$extensionGood = true;
if (array_search("Zend Optimizer", $loadedZendExtensions) !== false) {
    result(N_("info"), _T("Zend Optimizer loaded"), _T("Optimizer feature of 'Zend Optimizer' is disabled by XCache due to compatibility reason; the Loader of it is still available, encoded files are still supported"));
    $extensionGood = false;
}
if (array_search("the ionCube PHP Loader", $loadedZendExtensions) !== false) {
    result(N_("info"), _T("the ionCube PHP Loader loaded"), _T("Compatibility with this the ionCube PHp Loader' is taken care of; But in case if there's any problem, report to ionCube team and/or XCache devs"));
    $extensionGood = false;
}
if (!$extensionGood) {
    result(N_("info"), _T("Looks good"));
}
// }}}
checking(_T("SAPI Compatibility"));
// {{{
if (php_sapi_name() == "cgi" || php_sapi_name() == "cgi-fcgi" && !isset($_SERVER["FCGI_ROLE"])) {
    result(N_("error"), _T("CGI is not supported"), _T("Use FastCGI or FPM instead"));
} else {
    if (php_sapi_name() == "cgi-fcgi" && isset($_SERVER["FCGI_ROLE"]) && (int) getenv("PHP_FCGI_CHILDREN") < 1) {
        result(N_("error"), "PHP_FCGI_CHILDREN<1", _T("PHP_FCGI_CHILDREN should be >= 1 and use 1 group of parent/childs model. See http://xcache.lighttpd.net/wiki/Faq"));
    } else {
        result(N_("info"), _T("Looks good"));
    }
}
// }}}
include "./diagnosis.tpl.php";
开发者ID:akhan786,项目名称:LaunchDevelopment,代码行数:31,代码来源:index.php


注:本文中的checking函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。