Jpgraph Accelerator nusphere Installation Configuration Tutorial

Source: Internet
Author: User
Tags ini php script php web development version

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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.