本文整理匯總了PHP中test::session_enabled方法的典型用法代碼示例。如果您正苦於以下問題:PHP test::session_enabled方法的具體用法?PHP test::session_enabled怎麽用?PHP test::session_enabled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類test
的用法示例。
在下文中一共展示了test::session_enabled方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
border-bottom: solid 1px #CCCCCC;
}
table.tests td.title {
width: 300px;
}
</style>';
print '
<h2>Test server configuration</h2>
This page gives you information about the server based on current configuration. Make sure you have no values in red otherwise the framework might not work properly. Values in orange might need your attention, but will not prevent the framework from working.';
print '<h3>Web server</h3>
<table cellspacing="0" cellpadding="5" class="tests"><tr>
<td class="title"><b>Running on Apache</b> (Recommended but not required)</td><td>' . (test::get_apache_version() ? test::ok() . " (" . test::get_apache_version() . ")" : test::warning("No")) . '</td>
</tr><tr>
<td class="title"><b>PHP Version</b> (Required 5.0+, recommended 5.2+)</td><td>' . (test::get_php_version() >= 5.0 ? test::get_php_version() >= 5.2 ? test::ok() : test::warning("OK") : test::invalid("No")) . ' (' . test::get_php_version() . ') <a href="' . common::url('self') . '?view=phpinfo">View PHP Info</a></td>
</tr><tr>
<td class="title"><b>Sessions</b> (Required)</td><td>' . (test::session_enabled() ? test::ok() : test::invalid()) . '</td>
</tr><tr>
<td class="title"><b>Magic quotes</b> (Recommended to be off)</td><td>' . (test::magic_quotes_on() ? test::warning("Turn off for better performance") : test::ok("OFF")) . '</td>
</tr></table>
<h3>Admin console and config file</h3>
<table cellspacing="0" cellpadding="5" class="tests"><tr>
<td class="title"><b>Valid path to root</b></td><td>' . (test::root_path_valid() ? test::ok("YES") : test::invalid("NO")) . ' (Path: <i>' . PATH_TO_ROOT . '</i>)</td>
</tr><tr>
<td class="title"><b>Valid path to root for editing</b></td><td>' . (test::root_path_write_valid() ? test::ok("YES") : test::invalid("NO. Update will not work if it is not valid")) . ' (Path: <i>' . PATH_TO_ROOT_WRITE . '</i>)</td>
</tr><tr>
<td class="title"><b>Config file exists</b></td><td>' . (test::config_exists() ? test::ok("YES") : test::invalid("NO")) . ' (Path: <i>' . CONFIG_FILE . '</i>)</td>
</tr><tr>
<td class="title"><b>Config file is writable</b> (though edit path)</td><td>' . (test::config_writable() ? test::ok("YES") : test::invalid("NO")) . ' (Path: <i>' . CONFIG_FILE_WRITE . '</i>)</td>
</tr><tr>
<td class="title"><b>Config is complete</b></td><td>' . (test::config_complete() ? test::ok("YES") : test::invalid("NO. Run configuration again")) . '</td>