Changeset 133 in svn for trunk/admin/xcache.php


Ignore:
Timestamp:
2006-09-04T12:03:18Z (9 years ago)
Author:
Xuefer
Message:

admin-page: more friendly if XCache isn't loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/xcache.php

    r123 r133  
    8383}
    8484
     85if (!extension_loaded('XCache')) {
     86    echo '<h1>XCache is not loaded</h1>';
     87    ob_start();
     88    phpinfo();
     89    $info = ob_get_clean();
     90    if (preg_match('!<td class="v">(.*\\.ini)!', $info, $m)) {
     91        echo "Please check $m[1]";
     92    }
     93    else {
     94        echo "You don't even have a php.in yet?";
     95    }
     96    exit;
     97}
    8598$pcnt = xcache_count(XC_TYPE_PHP);
    8699$vcnt = xcache_count(XC_TYPE_VAR);
Note: See TracChangeset for help on using the changeset viewer.