本文整理匯總了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;