In the development, we should pay attention to prevent SQL injection, so in the form submitted to the value to do the corresponding processing, before the data can be updated to the database
PHP annihilation function. Any value can be passed over to
First, to use curl_setopt This function must be inside the server to compile the curl this component, how to install the compilation of this component please specific to Google search
ii. Explanation of PHP help documentation for CURL_SETOPTBOOL
Last time I talked about RefCount and Is_ref, here's a memory leak.
Copy CodeThe code is as follows:
$a = Array (1, 2, & $a);
unset ($a);
in the old version of PHP, there is a memory leak, which is analyzed as follows:
Execute the first line to
The code naturally without the text Editing tool vim, automatic indentation is a tab, even if you delete the tab to 4 spaces, will also continue to indent in the next Level tab, resulting in a space and tab mixed
Information that can be modified
① Effect and usage
Can reduce duplication of code
Include (_once) (path to file) and require (_once) (Path to file)
② Understanding
To put it bluntly, it is to replace include (_once) with the contents of the included file, require (_once) line
First of all, install PHP and Apache environment.
I'm using a wamp integrated kit.PHP 5.2.8
Apache 2.2.1.1
When these are all ready,
Go to memcache official website to download Memcache.exe this program under Windows
And put him under the
First, the method of implementing automatic loading in PHP1. Use require,include,require_once,include_once to load manually.
2. Use __autoload for automatic loading
3. AutoLoad with SPL for automatic loading
Implementation of manual loading:
When
The use of htaccess files can be very good site pseudo-static, and the formation of the target address and the real static page almost identical, such as wangqu.html, pseudo-static can be very good combination of SEO to improve the ranking of the
Mediator mode, the purpose of this pattern is to encapsulate the interaction of a group of objects to prevent interference between objects, and the mediator (mediator) acts as an intermediate aggregation point between the peer object (colleague). Co-
There is a problem with MySQL queries that use the left (right) join filter condition in MySQL to see if there is a difference between on and where data is queried.
Maybe just looking at two keywords doesn't show any problems. Let's use the actual
1, the advantages of nginx with respect to Apache:lightweight, the same Web service, than Apache consumes less memory and resourcesanti-concurrency, Nginx processing requests are asynchronous and non-blocking, while Apache is a blocking type , Nginx
The first is the import label, which uses the namespace-like method of an import function similar to thinkphp, for example:
Import tag (introducing a resource file in namespace mode)
Closed
Closed label
Most similar code on the network can only be used under gb2312 encoding, and the following class can convert Chinese characters to pinyin under Utf-8 encoding.
The specific code and usage are as follows:
Copy CodeThe code is as follows:
function
Copy CodeThe code is as follows:
function map ($fun, $list, $params =array ()) {
$ACC =null;
$last =array_push ($params, NULL, $ACC)-1;
foreach ($list as $params [$last-1]) {//The first time I see this, it feels amazing.
$params
I want to export the data to excel in my PHP project, and the data contains Chinese.
I probably know about it on the internet but using Phpexcel, but the framework is too complex for my needs. So I still want to find a simple way.
Online discovery
1. In Project Explorer in Zend-studio, right-click import-> Select Svn->project from svn-next-"Select Create New ... location-" Enter the address of the project in the URL: for example: Svn://192.168.1.230/xuexi.
2. Enter your username and password
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