When I wrote this blog, I actually developed a large part of it.PHP part, Unity part is already almost, because Kbengine (abbreviation KBE) completely did not touch, in fact many place PHP part of logic can move directly to KBE complete. In order to
Orphan process: One parent process exits, and one or more of its child processes are still running, then those child processes will become orphans. The orphan process will be adopted by the INIT process (process number 1) and the Init process
Quick sort:The fast sorting algorithm is an optimization of the bubbling algorithm. His idea is to first split the array, put the large element values into a temporary array, the small element values into another temporary array (the split point can
Yii2 achieves three-level linkage instances between provinces, cities, and cities in China,
1, get source code: yii2-region_jb51.rar
2. Installation
Add to your composer. json File
"chenkby/yii2-region": "dev-master"
Switch to the project
The difference between overload and override in PHP is that overloadoverride
Override (overwrite, overwrite)
1. The method name, parameter, and return value are the same.
2. The sub-class method cannot reduce the access permission of the parent
Reload and rewrite of PHP objects, and rewrite of php objects
Overriding is a manifestation of the polymorphism between the parent class and the Child class, and Overloading is a manifestation of the polymorphism in a class. The Overloaded method
PHP single sample mode and factory mode, PHP mode factory ModeSingleton mode concept Singleton mode refers to the design mode in which the entire application class has only one object instance. Features of Singleton Mode
A class has only one
PHP error handling and exception handling, and Exception Handling
Error handling:1. Syntax Error2. runtime errors3. logical error
Error Report:Error E_ERRORWarning E_WARNINGNote E_NOTICE
Development Phase: All error reports are output during
Password Security Password Hashing and passwordhashing in PHP
If you are still using md5 encryption, we recommend that you check the password encryption and verification methods below.
Let's take a look at a simple example of Password Hashing:
The
In PHP, the method for querying the database in non-buffer mode is as follows:
Recently I encountered the following error when developing a PHP program:
PHP Fatal error: Allowed memory size of 268 435 456 bytes exhausted
The error message shows that
PHP verifies whether the terminal type is a simple instance of a mobile phone, and php Terminal
Example:
/*** Determine whether the currently accessed user is PC or mobile. If the returned value is true, the returned value is "false", and the
Set up the latest PHP7 + apache environment in win7_64bit, win7_64bitphp7
After about half a day, the PHP + apache + miriadb database was successfully configured in win7_64bit.
+ Download and decompress the configuration tool
01. Apache HTTP
For details about the differences between PHP isset () and empty (), issetempty
When using php to write page programs, I often use the variable processing function to determine whether the variable value of a parameter at the end of the php page is
WNMP (Windows + Nginx + PHP + MySQL) installation, wnmpnginx
A new project is being developed recently. The environment uses:
Nginx1.10.3: http://nginx.org/en/download.html Download windows pack
PHP 7.1.1: http://windows.php.net/download/ Download
Based on the yaf framework and the uploadify plug-in, yafuploadify provides the ability to import an excel file, view and save data.
Ideas:
1. First, upload the attachment to the front-end of the page and submit it to the background with a random
Example of how php implements xml Conversion array and phpxml Array
The example in this article describes how php converts arrays into xml. We will share this with you for your reference. The details are as follows:
OK 39.94921 116.463619
Php uses the curl proxy to capture data.
This example describes how php uses the curl proxy to capture data. We will share this with you for your reference. The details are as follows:
0)/* how long each connect interval */usleep ($ wait_usec ); //
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