This is the script to check if Zend Optimizer (Loader) is installed on the server:

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
</head>
<body>
<?
function ShowStatus($bIsEnabled, $cVer = "") {
@ob_end_clean();
echo 'PHP: '.PHP_VERSION."<br><br>\n";
if($bIsEnabled) {
echo "<b>Zend Optimizer is installed (".$cVer.")</b><br>";
echo "<b>Zend Optimizer is installed (".$cVer.")</b>";
} else {
echo "<b><font color='#ff0000'>Zend Optimizer is NOT installed. Installation cannot be started.</font></b><br>";
echo "<b><font color='#ff0000'>Zend Optimizer is NOT installed. Installation cannot be started.</font></b>";
}
}

ob_start(); // Parse phpinfo results phpinfo(); $res = ob_get_clean(); $res = strtolower(str_replace(’ ‘,’ ‘,$res)); if(preg_match("/zend\soptimizer\s+(v\d+.\d+.\d+)?/", $res, $m)) { ShowStatus(true, $m[1]); } else ShowStatus(false); preg_match("/zend\sloader.(enabled|disabled)/", $res, $m); if ($m[1] === ‘disabled’) { echo “<br><br><b><font color=’#ff0000’>Zend Loader is turned off. Please set "zend_optimizer.enable_loader = 1" in php.ini</font></b><br>”; echo “<b><font color=’#ff0000’>Zend Loader is turned off. Please set "zend_optimizer.enable_loader = 1" in php.ini</font></b>”; } ?> </body> </html>


Copy this script into a file named test.php, upload it to the website folder, and open yoursite.com/test.php