As mentioned in the previous Jpgraph tutorial, the way to improve jpgraph performance is to install the PHP accelerator in addition to using the Jpgraph caching system. In fact, installing an available PHP accelerator is one of the best ways to increase the performance of a large and complex PHP script. Jpgraph supports Nusphere phpexpress accelerator.
To take advantage of this accelerator, you must install the version of the encoding library that the accelerator uses. This version includes the Professional Edition directory src-encoded/directory.
If you have a professional version of the Jpgraph class library, there is no reason not to use the accelerated version of the library. It lowers the load on the server and significantly reduces the elapsed time of the chart script. In addition, it will also reduce the memory requirements.
Nusphere Phpexpress also implements a caching mechanism, which means that scripts that are often executed will be saved in memory to avoid the need for time to read from disk every time. This also applies to coded and non encoded script files.
Installation Configuration Nusphere phpexpress Accelerator
Nusphere phpexpress is an ordinary PHP extension that makes it easy to install and configure. You can download phpexpress for free, address: http://www.nusphere.com/products/phpexpress.htm
The following points are required to install Nusphere phpexpress:
1, open the php.ini configuration file
2. If your PHP running environment is deployed under Windows, add a line
1
|
Zend_extension_ts=c:\full\path\to\phpexpress-php-x.x.dll |
If your PHP operating environment is deployed under UNIX, Linux or Mac OS, add a row
1
|
Zend_extension=/full/path/to/phpexpress-php-x.x.so |
3, copy Phpexpress-php-x.x.dll or phpexpress-php-x.x.so to php.ini specified PHP extension directory
4, restart the Apache server
5, optional. Call the Phpinfo function to ensure that phpexpress is properly installed on the server. You can perform nu-coder coded PHP scripts and normal PHP scripts without coding. In both cases, you can get a running script with high performance.
It should be said that the installation of Jpgraph accelerator is very convenient, but the feeling is only in the Jpgraph Professional version of support, interested friends can manually practice.
Note : PHP Web Development Tutorials-leapsoul.cn Copyright, reproduced in the form of links to indicate the original source and this statement, thank you.