1 (edited by coolhd 2005-07-10 02:34)

Topic: Make detect eAccelerator in admin_index.php

I use eAccelerator to increase performance of PHP scripts, but in admin_index.php it can not detect correctly.So I modify some code like below.

In admin_index.php about line 143:

// See if MMCache or PHPA is loaded
if (function_exists('mmcache'))
    $php_accelerator = '<a href="http://turck-mmcache.sourceforge.net/">Turck MMCache</a>';
else if (isset($_PHPA))
    $php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
else
    $php_accelerator = 'N/A';

Replace with:

// See if MMCache or eAccelerator or PHPA is loaded
if (function_exists('mmcache'))
    $php_accelerator = '<a href="http://turck-mmcache.sourceforge.net/">Turck MMCache</a>';
else if (function_exists('eaccelerator'))
    $php_accelerator = '<a href="http://eaccelerator.net/">eAccelerator</a>';
else if (isset($_PHPA))
    $php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
else
    $php_accelerator = 'N/A';

Just make it "look" better. smile

Re: Make detect eAccelerator in admin_index.php

I didn't know eaccelerator had it's own signature function. I will add it in the next release.

"Programming is like sex: one mistake and you have to support it for the rest of your life."