PHP也许是在Linux开发者中最受欢迎的网站构建语言,同时也是在其它平台程序员中可利用的语言。PHP是全面支持的,快速而且相当灵活。 然而,PHP却有一个缺陷。因为PHP是一个脚本语言,因此他在执行任何特定的闲混的脚本之前就能编辑。但是如今大部分的现代系统能够快速地这样做,那么获取在网络中脱颖而出的具有最佳性能的一个,总是一件好事。 Alternative PHP Cache (APC)是一种对PHP有效的开放源高速缓冲储存器工具,它能够隐藏编辑的脚本。所以对于后来命令,如果它已经改变了,PHP只能重新编辑脚本。 但是这这样只能导致在某些脚本上获取最适度的性能,而且这对更复杂的脚本更有意义。不同于它的一些竞争者,APC是开放源,而且是广泛适用的。你可以从APC网站上下载源编码。 免费的商业版本也是可用的:Zend的Zend优化者。(Zend是编写引擎PHP的公司,编辑脚本.)但是,独立报告已经公布APC的收获比起Zend的优化者更有意义。 安装APC是非常便捷的;只要下载了APC的源编码,就无需配置其它,用来使其在盒子之外工作。最新版本是 2.0.4。执行以下操作,安装APC: # tar xvzf APC-2.0.3.tgz # cd APC-2.0.3 # /usr/bin/phpize # ./configure --enable-apc # make # make install 如果你的PHP的安装不是在/usr下,你必须从你的安装目录下的bin/目录调出phpize.比如,如果你已经在/usr/local/php下安装了PHP,你就需要执行/usr/local/php/bin/phpize。 下一步,使用一个文本编辑软件编辑php.ini文件(通常是/etc/php.ini),把如下的内容增加到尾部: extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20050922/apc.so" 保存文件,重启Apache。然后,在你的网树某个位置创建一个叫做info.php的文件,包括如下: 在你的浏览器上打开此页。你会在输出上看到APC的一部分。你现在就能利用APC加速你的PHP脚本。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Linux new version
SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
