Php-ini OptimizationVi/etc/php.iniOpen PHP Safe Mode, control PHP execute dangerous function, default is off, change to OnSql.safe_mode = OffClose PHP header information, hide version number, default is on, this is offexpose_php = OnError message
Xhprof is Facebook open source out of a PHP performance testing tool, also can be called the Profile tool, the word does not know how to translate to be more expressive. There are a lot of similarities compared to the xdebug that have been used
Objective
PHP itself is already a very fast language, but in addition to the speed of execution, PHP There are still many places that can be optimized.
In this article we will introduce some of the following:
1. why There are many factors
1, for many code files said, especially contains a lot of include files (include or require). They need to spend more time and parse and generate intermediate code.
2, even if the PHP code file has not changed, the implementation process will be
1 origin
With regard to PHP, many people intuitively feel that PHP is a flexible scripting language with rich library classes, simple to use, and secure. It is very suitable for WEB development, but its performance is low. Is PHP performance really
1 origin
With regard to PhP, many people intuitively feel that PHP is a flexible scripting language with rich library classes, simple to use, and secure. It is very suitable for web development, but its performance is low. Is PHP performance really
A php project, or product, starts from nothing, from a few users to tens of thousands or even more users. In many cases, performance bottlenecks may occur, from rapid project development, not focusing on SQL statements, to SQL statement optimization;
1. Origin
About PHP, a lot of people's intuitive feeling is that PHP is a flexible scripting language, library class rich, easy to use, safe, very suitable for web development, but low performance. Is the performance of PHP really as bad as
This article mainly introduces the PHP 7 installation experience, high performance, compatibility, extension support is not enough (upgrade PHP to be cautious), very practical value, the need for friends can refer to the next
With the release of
1. OriginsWith regard to PHP, many people's intuitive feeling is that PHP is a flexible scripting language, library class rich, easy to use, secure, very suitable for web development, but poor performance. is PHP's performance really as bad as
Learning routes and suggestions for PHP beginners
[Guide]This article focuses on PHP learning. I have previously introduced "important materials! PHP Resources Summary Daquan on Github, in-depth discussion of PHP class encapsulation and inheritance,
PHP team: Google's website acceleration PHP skills are really nonsense. 51CTO quick translation] The Google team shared their website acceleration tips last week, including some PHP performance skills. However, these PHP performance skills have
Learning routes and suggestions for PHP beginners and php beginners
[Guide]This article focuses on PHP learning. I have previously introduced "important materials! PHP Resources Summary Daquan on Github, in-depth discussion of PHP class
It is applicable to PHP beginners and php beginners. This article describes the learning routes and suggestions for PHP beginners. for php beginners, [Guide] this article focuses on PHP learning issues! PHP Resource summary Daquan on Github,
In the fourth phase of the PHP performance optimization series, how to use the PEARBenchmark tool to obtain the function execution performance is described in PHPWind and Discuz! The truncation functions substrs and cutstr in the two community
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only echo can do this, it is a string can be used as a
Using Phpexcel to import data, the sheet object has a slightly higher getcellbycolumnandrow performance than Getcell, and for 1500 rows of Excel data, it is approximately 200 milliseconds. For array lookups, you should convert as much as possible to
What is PearPear is an abbreviation of the PHP extension and the application library (the PHP Extension and application Repository). It is a PHP extension and application of a code warehouse, simply, pear is the PHP cpan.Why to install PearPear
Xhprof is a tool used by FB to analyze the performance of PHP programs, using lightweight and convenient. Official address: Http://mirror.facebook.net/facebook/xhprof/doc.html#installation
1, installation use:
wget http://pecl.php.net/get/xhprof-0.9
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