Administrators of more than 3 million Internet websites around the world are using PHP, making it one of the most popular server-side scripting languages. It features fast running, stable and reliable, cross-platform, and open source software.
PHP Optimization for PHP is mainly for PHP. the main parameters in ini are adjusted and set properly. Let's take a look at PhP below. how to set parameters that have a greater impact on performance in ini.
# Vi/etc/PHP. ini
(1) Disable finding
Administrators of more than 3 million Internet websites around the world are using PHP, making it one of the most popular server-side scripting languages. It features fast running, stable and reliable, cross-platform, and openSource codeSoftware.
Session support is a new feature in PHP 4.0 that has long been expected. In the era of PHP 3.0,
Program The designer must use the function library written by others to implement the status management function, or simply discard this function. The
Session support is a new feature in PHP 4.0 that has long been expected. In the PHP 3.0 era, programmers must use the function library written by others to implement the State management function, or simply give up this function. The lack of status
WAMP environment installation and testing, WAMP environment installation and testingFirst, let's add: the development history of web Services, Peer Network Service Model
There are no dedicated servers and no dedicated clients! Cannot provide
In-depth analysis of PHP optimization and precautions, in-depth analysis of php Optimization
1. Static as much as possible:
If a method can be static, it is declared as static, and the speed can be increased by 1/4, or even increased by nearly three
During PHP development, if you want to introduce a class from the outside, the include and require methods are usually used to include the file defining this class, however, this may cause a large number of include or require method calls in the new
Directory
Preparations
Enable XDebug
How to Use XDebug for PHP debugging
Debugging Area Window
Debugging session
Sample debugging session
Use other monitoring
PHP and HTML hybrid Use Cases
To learn this tutorial, you must have the
PHP Optimization for PHP is mainly for php. the main parameters in ini are adjusted and set properly. Let's take a look at php below. how to set parameters that have a greater impact on performance in ini.
# Vi/etc/php. ini
(1) Disable finding PHP
PHP is fast, reliable, cross-platform application, and open source code. This makes PHP one of the most popular server-side Script languages. Based on what I learned at work, I would like to introduce my experiences in using PHP and hope to help you.
PHP error mechanism Knowledge Summary, php mechanism summary. PHP error mechanism Knowledge Summary, php mechanism summary PHP error mechanism is also very complex, has been done for a few years php, has not been carefully summarized, now make up
NetBeans IDE PHP Quick Start tutorial (Web grooming)
Directory
Component Installation
Set up PHP projects in the NetBeans IDE for PHP
Run the first PHP project
Using the database server in the NetBeans IDE for PHP
Next steps
About 0x00
PHP local file contains knowledge of the vulnerability, dark clouds early on the corresponding article, Lfi with Phpinfo first by foreign Daniel, can refer to the following two articles. The use of the principle is to use the PHP post
The use of require is as follows require("MyRequireFile.php"); . This function is usually placed at the front of the PHP program, and before the PHP program executes, it is read into the file specified by require to make it a part of the PHP program'
1. Try to be static:If a method can be static, it is declared static, the speed can be increased by 1/4, even when I test, this improved by nearly three times times.Of course, this test method needs to be executed at level 100,000 and above, the
After PhP5, the __autoload interceptor method is introduced, which can automatically include references to class files, which we usually write:Copy code code as follows:function __autoload ($classname) {Include_once $classname. '. class.php ';}
IIS supports HTML to execute PHP output2012-07-25 10:50:23| Category: PHP| Report | Font size Subscription There is a simple PHP random number in HTML that needs to be output, for example: Style= font-si ze:14px; Color: #FFF; width:220px;
1. Try to be static:
If a method can be static, then declare it static, speed can be increased by 1/4, even when I test, this improved nearly three times times.
Of course, this test method needs to be performed above level 100,000, the effect is
Last Updated: 2011/04/02
1. Use the list to achieve a specific segment value after getting explode:
List (, $mid) = explode ('; ', $string);
2. Use NULL = = to replace Is_null:
Is_null and NULL = = are exactly the same effect, but save a function
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.