Today talk about WordPress's main query function-query_posts (), because I am working on the theme of the use of this function many times.
The query_posts () query function determines which articles appear in the main WordPress loop (loop), and
If the path to MySQL installation is not on drive C, go to the MySQL bin directory and enter "Mysql-u Username-ppassword" at the command prompt
If the path to MySQL installation is on the C drive, enter "Mysql-h localhost-u Username-ppassword"
1. The basic principles of PHP submission data filtering
1) When committing variables into the database, we must use Addslashes () to filter, like our injection problem, a addslashes () will be done. In fact, when it comes to variable values, the
I. Introduction of GUIDs
GUID: The globally unique Identifier (globally unique identifier) is also known as the UUID (universally unique Identifier). A GUID is a 128-bit numeric identifier produced by a particular algorithm that indicates the
Upload Avatar, interface no jump way a lot, I used to add an iframe that kind. Directly below the code.
Html:
Copy CodeThe code is as follows:
The route is the back-end interface
Upload/avatar the saved address for the uploaded
------------------------------------
1. Test, QR code generation, scan after the appearance of the screen
A. For example, using QQ to scan the information can be directly added to the contact, this should be QQ scan QR code after processing,
B. If
CodeIgniter is a lightweight, convenient MVC framework, the recent project involves batch upload, so, is to use the SWFUpload this plugin, although there are many on the internet on CI and swfupload posts, but, is not very complete, so, here
Official Address: http://www.phpdoc.org/Project address: Https://github.com/phpDocumentor/phpDocumentor2
Phpdocumentor 2 is a program that can parse PHP source code and comment blocks and generate documents.
Inspired by Phpdocumentor 1 and Javadoc,
I. Measurement of quality using static analysis tools
We use static analysis to measure the code without running it. In fact, we use these tools to evaluate code, read files, and measure the features it writes. Using these tools can help us to have
This problem is also recently thought, that is to read the file faster or faster to read the database, how much faster, days edge also searched, did not see a netizen on this question answered, may also be too simple reason, we this article or to
The first and last day of the week
Copy CodeThe code is as follows:
$date =new DateTime ();
$date->modify (' this week ');
$first _day_of_week= $date->format (' y-m-d ');
$date->modify (' This week +6 days ');
$end _day_of_week= $date->format ('
Restrict IP segment access in PHP, disable code Sharing for IP submission forms, IP forms
Add the following code to the page where you want to prohibit access or submit a form.
Note: Below is just an instance code that restricts IP to PHP, and if
The Mystery of thinkphp application pattern extension
The thinkphp Application model provides the opportunity to transform the core framework, allowing your application to adapt to more environments and different needs. Each application pattern
Php+mysql implementation of database random rearrangement instances, Phpmysql re-scheduling instances
In this paper, the method of random rearrangement of php+mysql database is realized, and all the data in the table can be randomly read out once
About PHP pseudo-static rewrite settings, PHP pseudo-rewrite
The main function of Rewirte is to achieve
URL to jump and hide real address, a regular expression specification based on the Perl language. Usually help us achieve quasi-static,
PHP generates a short URL of 3 ways to code instances, PHP generated 3 instances of
Short URL service, may be a lot of friends are no longer unfamiliar, now most of the microblogging, mobile email reminders and other places already have a lot of
PHP Validation Session Invalid workaround, PHP validation session
This article describes a workaround for PHP to verify that the session is invalid. Share to everyone for your reference. Here's how:
First, the question
Today in the configuration of
thinkphp implement like Fuzzy query instance, thinkphp fuzzy query
The example of this paper describes the thinkphp implementation of like fuzzy Query method, share for everyone for reference. The implementation method is as follows:
At present,
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.