= 0 ) { $piwik_errorMessage = "

To run Piwik you need at least PHP version $piwik_minimumPHPVersion

Unfortunately it seems your webserver is using PHP version $piwik_currentPHPVersion.

Please try to update your PHP version, Piwik is really worth it! Nowadays most web hosts support PHP $piwik_minimumPHPVersion.

"; } $piwik_zend_compatibility_mode = ini_get("zend.ze1_compatibility_mode"); if($piwik_zend_compatibility_mode == 1) { $piwik_errorMessage = "

Piwik is not compatible with the directive zend.ze1_compatibility_mode = On

It seems your php.ini file has

zend.ze1_compatibility_mode = On
It makes PHP5 behave like PHP4. If you want to use Piwik you need to set
zend.ze1_compatibility_mode = Off
in your php.ini configuration file. You may have to ask your system administrator.

"; } /** * Displays info/warning/error message in a friendly UI and exits. * * @param string $message Main message * @param string|false $optionalTrace Backtrace; will be displayed in lighter color * @param bool $optionalLinks If true, will show links to the Piwik website for help */ function Piwik_ExitWithMessage($message, $optionalTrace = false, $optionalLinks = false) { if($optionalTrace) { $optionalTrace = 'Backtrace:
'.$optionalTrace.'
'; } if($optionalLinks) { $optionalLinks = ''; } $headerPage = file_get_contents(PIWIK_INCLUDE_PATH . '/themes/default/simple_structure_header.tpl'); $footerPage = file_get_contents(PIWIK_INCLUDE_PATH . '/themes/default/simple_structure_footer.tpl'); $headerPage = str_replace('{$HTML_TITLE}', 'Piwik › Error', $headerPage); $content = '

'.$message.'

'. $optionalTrace .' '. $optionalLinks; echo $headerPage . $content . $footerPage; exit; } if (!function_exists('file_get_contents')) { function file_get_contents($filename) { $fhandle = fopen($filename, "r"); $fcontents = fread($fhandle, filesize($filename)); fclose($fhandle); return $fcontents; } } if(isset($piwik_errorMessage)) { Piwik_ExitWithMessage($piwik_errorMessage, false, true); } /** * We now include the upgradephp package to define some functions used in Piwik * that may not be defined in the current PHP version. * * @see libs/upgradephp/upgrade.php * @link http://upgradephp.berlios.de/ */ require_once PIWIK_INCLUDE_PATH . '/libs/upgradephp/upgrade.php';