1. Use Php–rasmus Lerdorf at the right time
No one than the PHP creator Rasmus Lerdorf understand where PHP is more reasonable, he released the language of PHP in 1995, since then, PHP like a prairie fire, burning all over the development camp,
Use single quotes instead of double quotes to include strings, which is faster. Because PHP will search for variables in strings enclosed by double quotes, but not in single quotes. Note: Only echo can do this. it is a function that can treat
PHP.ini Chinese version for php-5.2 (iv)
[Php-core-outputcontrol]; Output control functions are useful, especially if you have already exported the information and sent an HTTP header.; The output control function does not work on HTTP headers
Some PHP packages and phpinfo issues
1.Liunx PHP package has bin, etc, include, lib, man, and win under the Dev, ext, extras, pear, what is the use of each? Why is there such a difference?
2. What I know is that the ext installed in the win is the
QuestionsI loop through the file_get_contents crawl a bunch of URLs, but always stop at the 100th URL, prompting me: "Warning:file_get_contents (URL) [function.file-get-
Contents]: Failed to open stream:http request failed! http/1.0 Read timed
Php_study Diary: Exception handling
Php_study Diary: Exception handling
December 21, 2011
# #异常处理
Although we have written a neat, well-designed to it, but in the program can still have a variety of unexpected occurrences, when a program in the
0. replace double quotation marks with single quotes to include strings. This will be faster. Because PHP will search for variables in strings enclosed by double quotes, but not in single quotes. Note: Only echo can do this, it is a "function" that
PHP Class 5 automatic type conversion and process control, php conversion process
Learning Overview:
1. Learn about automatic type conversion
2. Understand basic process control statements
3. Example: compile a calendar table
Automatic type
Introduction: This is a detailed page for beginners to analyze common php development tools. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
1. When file_get_contents can be used to replace file, fopen, feof, fgets, and other methods, try to use file_get_contents, because its efficiency is much higher! Note the PHP version of file_get_contents when opening a URL file;
2. Perform as few
This article discusses several implementation methods for Automatic Webpage redirect. Method 1: Using meta tag is one of the indispensable tags in HTML. It provides the meta information of documents. Its parameters include: ① http-equiv: http File
Case-sensitive conversion functions
Strtolower ()Strtoupper ()Ucfirst ()Ucword ()
Text HTML Tag processing function
Nl2br ()Htmllentities ()Htmlspecialchars ()Stripslashes ()Strip_tags ()Number_format ()Strrev ()MD5 ()
// Convert to lowercase$ A =
0. replace double quotation marks with single quotes to include strings. This will be faster. Because PHP will search for variables in strings enclosed by double quotes, but not in single quotes. Note: Only ECHO can do this, it is a "function" that
1. If a method c ++ an be static, declare it static. Speed improvement is by a factor of 4. If a method can be static, make a static Declaration on it. The speed can be increased to 4 times.
2. echo is faster than print. echo is faster than print.
3
PHP performance optimization (php. ini), performance optimization php. ini
Chapter 1 Optimization of excessive system callsMy Optimization Aimed at too many syscall calls, so I used strace to track apache for analysis.
1. apache2ctl-X &Use the-X
Summary of common classes in joomla2.5 and joomla2.5
The previous article only studied the JImage class. Today, we continue to use other commonly used joomla built-in classes. I write them from the perspective of common use. If PHP functions are
Summary of php methods for getting system variables, and summary of php methods for getting Variables
This article describes how to obtain system variables in php. Share it with you for your reference. The details are as follows:
Here we use some
24 genuine PHP code optimization skills, 24 genuine
The PHP code has been optimized for 24 things. I hope it will help you develop php projects. The specific content is as follows:
1. echo is faster than print.
2. Replace string connection with
0. replace double quotation marks with single quotes to include strings. This will be faster. Because PHP will search for variables in strings enclosed by double quotes, but not in single quotes. Note: Only echo can do this, it is a "function" that
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.