本文整理匯總了PHP中zend_optimizer_version函數的典型用法代碼示例。如果您正苦於以下問題:PHP zend_optimizer_version函數的具體用法?PHP zend_optimizer_version怎麽用?PHP zend_optimizer_version使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了zend_optimizer_version函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: substr
<?php
$PHP_VERSION = PHP_VERSION;
$PHP_VERSION = substr($PHP_VERSION, 2, 1);
if ($PHP_VERSION > 2) {
echo "ZendGuardLoader[啟用]";
} else {
echo "Zend Optimizer";
}
?>
</td>
<td width="18%"><?php
if ($PHP_VERSION > 2) {
echo get_cfg_var("zend_loader.enable") ? '<font color=green>√</font>' : '<font color=red>×</font>';
} else {
if (function_exists('zend_optimizer_version')) {
echo zend_optimizer_version();
} else {
echo get_cfg_var("zend_optimizer.optimization_level") || get_cfg_var("zend_extension_manager.optimizer_ts") || get_cfg_var("zend.ze1_compatibility_mode") || get_cfg_var("zend_extension_ts") ? '<font color=green>√</font>' : '<font color=red>×</font>';
}
}
?>
</td>
</tr>
<tr>
<td>eAccelerator</td>
<td><?php
if (phpversion('eAccelerator') != '') {
echo phpversion('eAccelerator');
} else {
echo "<font color=red>×</font>";
}
示例2: test_loader_zend
/**
* Check Zend Optimizer version
*/
private function test_loader_zend()
{
if (extension_loaded('Zend Optimizer') && $this->function_usable('zend_optimizer_version')) {
if (version_compare(zend_optimizer_version(), '3.3.3') < 0) {
$this->warnings[__METHOD__][] = 'You have an old version of Zend Optimizer (earlier than 3.3.3) which is known to cause problems with PHP scripts.';
}
}
}
示例3: GetZendInfo
public function GetZendInfo()
{
$zendInfo = array();
$zendInfo['ver'] = zend_version() ? zend_version() : '<font color=red>×</font>';
$phpv = substr(PHP_VERSION, 2, 1);
$zendInfo['loader'] = $phpv > 2 ? 'ZendGuardLoader[啟用]' : 'Zend Optimizer';
if ($phpv > 2) {
$zendInfo['html'] = get_cfg_var("zend_loader.enable") ? '<font color=green>√</font>' : '<font color=red>×</font>';
} elseif (function_exists('zend_optimizer_version')) {
$zendInfo['html'] = zend_optimizer_version();
} else {
$zendInfo['html'] = get_cfg_var("zend_optimizer.optimization_level") || get_cfg_var("zend_extension_manager.optimizer_ts") || get_cfg_var("zend.ze1_compatibility_mode") || get_cfg_var("zend_extension_ts") ? '<font color=green>√</font>' : '<font color=red>×</font>';
}
return $zendInfo;
}
示例4: if
<th class="w_top"><a href="http://www.yahei.net/tz/tz.zip">探針下載</a></th>
</tr>
</table>
<!--服務器相關參數-->
<table>
<tr><th colspan="4">服務器參數</th></tr>
<tr>
<td>服務器域名/IP地址</td>
<td colspan="3"><?php echo @get_current_user();?> - <?php echo $_SERVER['SERVER_NAME'];?>(<?php if('/'==DIRECTORY_SEPARATOR){echo $_SERVER['SERVER_ADDR'];}else{echo @gethostbyname($_SERVER['SERVER_NAME']);} ?>) 你的IP地址是:<?php echo @$_SERVER['REMOTE_ADDR'];?></td>
</tr>
<tr>
<td>服務器標識</td>
<td colspan="3"><?php if($sysInfo['win_n'] != ''){echo $sysInfo['win_n'];}else{echo @php_uname();};?></td>
</tr>
<tr>
<td width="13%">服務器操作係統</td>