PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
Magic method is a two underline "__" The beginning, has a special role of some methods, can be seen as PHP's "grammatical sugar."
Grammatical sugars are grammars that do not add new functionality to computer languages but are more "sweet" to humans.
One, CGI mode installation security
Second, the Apache module to install security
When PHP is installed as an Apache module, it inherits the privileges of the Apache user (usually "nobody"). This has some impact on security and authentication. For
1. What is the difference between double quotation marks and single quotation marks?
Double quote explanatory variable, single quote not explanatory variable;
Enclose single quotation marks in double quotes, in which the variable is
PHP, a nested abbreviated name, is an abbreviation for the English Super Text preprocessing language (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and Microsoft's ASP quite a bit similar, is a server-side implementation of
This article is mainly to share with you the PHP performance optimization example, this article lists a lot of points, hope to help everyone.
1. Try to be static:
If a method can be static, it is declared static, the speed can be increased by 1/4,
1 Code optimization1 Try to be staticIf 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
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
The combination of Chinese and English is really good. I have previously reposted my summary of PHP security programming. Some people say it's an old growth talk. This time, let's look at the works of foreign friends. According to the latest survey,
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
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.