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


PHP Wizard::start方法代码示例

本文整理汇总了PHP中Wizard::start方法的典型用法代码示例。如果您正苦于以下问题:PHP Wizard::start方法的具体用法?PHP Wizard::start怎么用?PHP Wizard::start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Wizard的用法示例。


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

示例1: pre

}
if (version_compare(PHP_VERSION, '5.3') >= 0) {
    //the user has the correct version
} else {
    //the user does not have the minimum php version
    echo "<body style='background-color:#F7F8FA;'>";
    echo "<div style='text-align:center; font-family:sans-serif; margin:60px auto; max-width:500px;'>";
    echo "<h2>Please upgrade your version of PHP before continuing</h2>";
    echo "<br/><p><strong>Required version</strong>: This application requires PHP 5.3 or greater. <br/>\n          <strong>Your current version</strong>: You currently have PHP " . PHP_VERSION . "</p> <br/><br/>";
    echo "<p>You will need to contact your hosting provider to upgrade your version of php.\n    This is usually free and very quick. Once you have upgraded, return this installation script to continue with\n    the installation. </p>";
    echo "</div></body>";
    exit;
}
require_once 'server/wizard.class.php';
$wizard = new Wizard();
$wizard->start();
function pre($data, $return = false)
{
    if (!$return) {
        echo "<pre>";
        print_r($data);
        echo "</pre>";
        return true;
    } else {
        return "<pre>" . print_r($data, true) . "</pre>";
    }
}
//todo: hack, I should just be able to require shared.functions.php but I'm re-using function names which causes errors
function get_config($option)
{
    global $CONFIG;
开发者ID:neevan1e,项目名称:Done,代码行数:31,代码来源:index.php


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