APC, full name: AlternativePHPCache, officially translated as "optional PHP Cache ". It provides us with a framework for caching and optimizing PHP intermediate code. APC cache consists of system cache and user data cache.
APC, full name: Alternative PHP Cache, officially translated as "optional PHP Cache ". It provides us with a framework for caching and optimiz
Install APC on RHEL/CentOS6.3/5.6 and Fedora17/12 and install PHPAPC on Linux. This document describes how to install and enable PHPAPC on RHEL6.3/6.2/6.1/6/5.8/5.6, centOS6.3/6.2/6.1/6/5.8/5.6/6.3 and Fedora17, 16,15, 14,13, 12 use the PECL command to install APC on RHEL/CentOS 5.6/17/12 and Fedora
Install and enable php apc on Linux
This document describes how
request will be repeated execution of the parse-compile-execute, and in practice, the PHP code in the server generally will not change, every time we request to perform some unnecessary operations, which directly affect the performance of PHP, We're going to come here and think about why we don't have to cache? There are already a lot of mature caching mechanism, in the implementation of PHP code should be more than enough, even if our PHP code will change, we can also use a mature algorithm to
According to IDC, in 2003, 75% of IT spending was spent on storage devices and storage networks. Data explosions in the Internet, E-commerce, bioinformatics, and personalized Web services have created a lot of data. The value of these data is estimated at billions of dollars. Most of the value of the data is not implemented because it waits for analysis, but if the data is corrupted or lost, recreating it will take months or years. Although some data is constantly being retrieved (such as Custom
Today, I want to implement the upload progress of a large file. Later I said on the Internet that php apc can be implemented. Later I learned about php apc information, and PHP APC provides two caching functions, that is, cache Opcode (target file), which is called apc_compiler_cache. It also provides some interfaces for PHP developers to resident user data in th
How to install APC extension of PHP under Win. APC overview APC (AlternativePHPCache) is a PHP Cache. It stores PHP pages in memory and reduces hard disk I/O. This significantly improves the performance. You can even use the CPU
About APCAPC (Alternative PHP Cache) is a PHP Cache. It stores PHP pages in memory and reduces hard disk I/O. This significantly improve
First talk about the implementation of the PHP program process, which explains this, just to start our optimization trip.
Client (for example, browser)
-"Request Get hello.php
--The CGI server (for example, Apache) receives a request to find a PHP handler (such as mod_php) based on the configuration.
--"Apache loading PHP handler, PHP handler read php.ini initialization PHP interpretation environment
--mod_php Locate hell.php and load it into memory
--"mod_php compiled source code into opc
Welcome to the Linux community forum, interact with 2 million technical staff to enter the apc to install the latest APC-3.0.18.tgz, unzip, enter the directory apcpecl. php. netpackageAPCusrlocalphpbinphpize (production configure file ). Configure-enable-apc-m
Welcome to the Linux community forum, interact with 2 million technical staff> enter the
APC configuration problems my php. ini has the following configuration for apc: [apc] apc. cache_by_default = On nbsp; apc. enable_cli = Off nbsp; apc. enabled = On nb APC configurat
Today to do a large file upload progress effect, later on the internet said there is PHP APC can be achieved, and then Baidu a bit PHP APC information, PHP APC provides two kinds of cache function, that is, cache opcode (target file), we call Apc_compiler_cache. It also provides interfaces for PHP developers to host user data in memory, which we call Apc_user_cac
PHP Cache module cache (APC ). PHP Cache module cache (APC) APC is short for AlternativePHPCache and is a free and public optimized code cache for PHP. It is used to provide free, public, and robust architecture to slow PHP Cache module caching (APC)
APC is short for Altern
APC module, its full name is alternative PHP Cache. APC can cache all PHP code, and it can provide some memory caching capabilities. But this feature is not perfect, and there are reports that if you use the APC cache write feature frequently, it can cause unpredictable errors. If you want to use this feature, look at the APC_FETCH,APC_ A few functions associated
execute, will not immediately execute
Reference Video: Click on the Open link
Second, the thread APC queue
1. Each thread can explicitly create an "asynchronous call queue" by calling the QUEUEUSERAPC function
2, in fact, is a thread on the line function call stack to arrange a set of functions to perform
3. By default, this queue is not created when a thread is created, and this queue is created for this thread when the function is called
4, create
Use the APC module in PHP to implement the file upload progress bar. The APC module cannot be used in versions earlier than php5.2, because this APC module is not available in the past, if you want to use the APC module to implement the upload progress bar, you must use php5.2 or a version earlier than php5.2. the
APC and eAccelerator are both good PHP cache acceleration. Because eAccelerator has problems, you cannot select apc. We recommend that you select apc unless the eAccelerator has abnormal problems that cannot be solved, after all, apc also stops maintenance. php5.3 may not have a better choice. It has all evolved to 5.4
First, PHPAPC installationDownload and unzip the installation package:
Copy CodeThe code is as follows:
Wget-c http://pecl.php.net/get/APC-3.1.13.tgz
TAR-ZVXF apc-3.1.13.tgz
cdAPC-3.1.13
Compile and install:
Copy CodeThe code is as follows:
Wget-c http://pecl.php.net/get/APC-3.1.13.tgz
/usr/local/php/bin/phpize
./CONFIGURE--ENABLE-
Compared with other compiled languages, the performance of PHP is not outstanding, but the performance improvement is obvious after the OPCode cache is used. common examples include Eaccelerator, XCache, and APC. this document mainly introduces the use of APC.
APC introduction
The Alternative PHP Cache (APC) is a fre
The APC module cannot be used in versions earlier than php5.2, because this APC module is not available in the past. If you want to use the APC module to implement the upload progress bar, you must use php5.2 or a later version.
Starting from 5.2, APC added a new project called APC_UPLOAD_PROGRESS, which solved the lon
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.