PHP optimization summary 1. if the class method can be defined as static, it should be defined as static as much as possible, and its speed will be increased by nearly four times.
2. try to use absolute paths when using include files, because it
PHP character set
I installed Windows 7 Chinese version a few days ago, and today I re-installed PHP. Garbled characters occur during the test phase during installation. I wrote a related article in the Q-Zone Diary before, but I deleted it later.
[Convert] php read xml http://blog.chinaunix.net/u/16928/showart_516200.html
Php reads xml
Parser is a php built-in parser used to process xml. its work consists
[PHP] PHPUnit entry 2 Data Providers
A test method can accept any parameter. These parameters can be provided through a data provider method (provider () in the following example.
The data provider method is declared by @ dataProvider.
A data
PHP: the patients you know are too close to me, so they are far away from success.
I have been using this sentence recently to remind myself that it is difficult to learn well if you are not correct. no matter what language you are learning, you
Php address reference is different from the pointer in C language. the pointer in C language stores the address where the variable content is stored in memory.
Let's talk nonsense. let's look at the example first,
$ A = "ABC ";$ B = & $;Echo $
Usememcachedandphp-memcache (d) For memcached 1.2 to 1.3, protocol changed for delete (). For memcached 1.4, the wrong format will cause fatal error:
Failed with: CLIENT_ERROR bad command line format.
So php pecl-memcache will get failed with the
Php common judgment introduction to some PHP variable judgment functions
2010-07-31
Unlike other languages, PHP is not a strict type language. Basically, this means that developers do not have to explicitly set the type (numbers, strings, and
PHP does not need to be automatically deployed to automatically deploy multi-person development projects. maintenance is a huge burden. every time you modify the project deployment, it is always careful and painful.
To reduce the load, we decided
Download Nginx and PHP in Nginx + PHP under Windows 7.
Decompress Nginx to drive C and php to drive C respectively.
Configure C: \ Nginx \ conf \ nginx. conf as follows. My www service is placed under the Localhost folder of D: disk.
# User
PHP and MySQL (10) in Chapter 2, we use a mysql program to connect to the MySQL database server. in this program, we can enter SQL query (command) the query results are displayed immediately. In PHP, there is a similar mechanism: mysql_query
Comparison between JAVA and PHP 1. Language comparison
Php is the server script language for interpretation and execution. first, php is easy to use. The syntax is similar to the C language, so programmers who have learned the C language can quickly
To install the GD Library in linux, follow these steps:
1. Download
Gd-2.0.33.tar.gz http://www.boutell.com/gd/
Jpegsrc.v6b.tar.gz http://www.ijg.org/
Libpng-1.2.7.tar.tar http://sourceforge.net/projects/libpng/
Zlib-1.2.2.tar.gz
Php-factory model for their own shortcomings and deepen understanding of php, choose to use php to study various design patterns.
Today I read the introduction of the design model and learned the factory model, because the factory model is
For PHP output control, the mod_php5 module of apache2 is used as an example to register hooks through the php_ap2_register_hook () function. pre_config, post_config, and child_init are startup hooks. they are called at Server startup and handler is
Php file processing is a note I made when I was learning php. in order to have a good study habit and to provide a learning reference for programmers, I would like to share my learning notes, I hope to help myself and everyone. This learning
Introduction to PHP middleware-ICE: this is the details page of PHP middleware-ICE. it introduces php, related knowledge, skills, experience, and some php source code.
Class = 'pingjiaf' frameborder = '0' src = 'http: //
Introduction to socket_read in PHP: this is a detailed page of socket_read in PHP. it introduces php, related knowledge, skills, experience, and some php source code.
Class = 'pingjiaf' frameborder = '0' src = 'http: //
The phpordie () statement, exit () often sees such a statement: $ file = fopen ($ filename, 'r') or die ("Sorry, cannot open: $ filename ");
Or here, it is understood that, because in PHP, the data type is not distinguished, so $ file can be
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