In fact, it is very simple, this is also a good friend of mine to say to me.
1, the wrong time to see the first pass over the value, and then look at the SQL is not. In the SQL to draw out, copy to MySQL run; look right, right, down, step.
Every
Improve PHP Run efficiency 1, in functions, when passing an array
Using return is more efficient than using global
Like what
function Userloginfo ($usertemp) {$detail =explode ("|", $usertemp); return $detail; $login =userloginfo
Veteran has a "PHP debugging Manual" in the network popular, regardless of the veteran or tender birds, the role of this article is to introduce some simple and easy to debug the actual combat technology, I hope we can put forward valuable advice
Check the online e-mail format verification, do a summary.Eregi ("^[_.0-9a-z-]+@" ([0-9a-z][0-9a-z-]+.) +[a-z]{2,3}$ ", $STR)
This looks more reasonable because it validates the suffix name, although there are now 4 characters above the top-level
Signed, checked, asymmetric, and decrypted via OpenSSL need to be used in conjunction with X.509 certificates (such as CRT and PEM) files.
For a variety of reasons, this class is not very perfect, welcome to various tests.
_getpublickey ($p
PHP multiple threads under the same process will attempt to read and write some public resources stored in the process memory space , at which point the memory address space is the same, and when one thread modifies, it affects other threads, and
Work need to use PHP write log, log4php need complex configuration files, do not want to get. Although similar to the log4j configuration, there is no need to maintain a log configuration file.
You write a single file of the logger class, you only
1. Reference Counting basic knowledge
Each PHP variable exists in a variable container called "Zval". A Zval variable container that includes two bytes of extra information in addition to the type and value of the variable. The first is "Is_ref",
PHP has no middleware, causing a lot of trouble. For example, the operation of the database must be linked to the database, and then do SQL operations. Web programs directly manipulate the database method, this will bring a lot of human factors in
Principal mode
Provides a proxy for other objects to control access to this object
The simple understanding is shown in the following illustration:
Here we introduce a scenario to learn about the delegate model:The electric Dealer website above now
First, read the PHP website description:
Array_filter using callback functions to filter cells in an array
(PHP 4 >= 4.0.6, PHP 5)
Array_filter-filters elements of an array using a callback function a bug Description array array _filter (Array
Usually use $_get[' xx '] to get the value of the parameter, if you do not make a decision before passing the parameter will appear such a warning:
PHP notice:undefined Index XXX
Although you can set the error display to hide the hint, but there are
Write a project before the time to write too much of the page class, this time to see the video, this page class quite full, and then knocked again, feel OK, write down to share.
Introduce this page class: Home, Last, previous page, the next page,
This article mainly introduces the Getting Started tutorial of Python's gevent framework. The sample code is based on Python2.x. If you need it, refer to Python and provide basic support for coroutine through yield. Third-party gevent provides
This article mainly introduces the python sorting method. It is very simple and practical to analyze Python's skills for default sorting, descending sorting, and sorting by key value, for more information about the python sorting method, see the
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