1. First introduces WordPress's two powerful plug-ins:
(1) Count per day is a very powerful number of visitors statistics plug-ins, can be counted daily, yesterday, weekly, monthly and so on the number of visitors (based on IP statistics),
Recursive get Role ID string function Exploderole ($ROLEOBJ, & $resultStr) {if (0 childroleobjarr)) {Fore Ach ($roleObj->childroleobjarr as $CHILDROLEOBJ) {if ("= = $resultStr) {$resultStr. =" {$CHILDROLEOBJ->
ID} ";
}else{$resultStr. = "
Html
First in the head part of the load Raphael.js library files and chinamappath.js path information file, this article does not repeat, the only difference is the need to add a div#tip in the body, to show the map information of the balloon.
Method One: Interact with cookies.
A total of three files, respectively: index.htm,action.php,main.htm
Principle for the foreground page main.htm and background action.php through the page frame index.htm organized, the action.php page width set to 0
In the case of a known URL parameter, we can use $_get to obtain the corresponding parameter information ($_get[' name ') according to our own situation; then how do I get the parameter information on the URL in the unknown case?
The first, the use
Simple string interception method that supports Chinese and other encodings, passing the corresponding parameters directly to the call can be
Copy Code code as follows:
/**
* String interception, support Chinese and other coding
*
This article detailed PHP in the common magic methods are summarized, share for everyone to reference, the specific content as follows
1, PHP to all "__" as the beginning of the method as a magic method, so any custom method can not be "__" the
The example in this article describes the MySQL class implemented in PHP based on a single example mode. Share to everyone for your reference, specific as follows:
host = $conf->host;
Self:: $ins->user = $conf->user;
Self::
This example describes how PHP uses the Strstr () function to get all the characters after the specified string. Share to everyone for your reference, specific as follows:
The Strstr () function of PHP searches for the first occurrence of a string
This article describes the STRNATCMP () function "Natural sorting algorithm" in PHP for string comparison usage. Share to everyone for your reference, specific as follows:
The strnatcmp () function in PHP uses the "natural" algorithm to compare two
When a hacker invades a server, first of all, "casing", where the "casing", refers to the server running some of the details of services, such as: Version number, when the hacker knows the corresponding service version number, you can find the
When the content of the article is relatively long, in order to better meet the user experience, we will page the content of the display processing, and general paging is the post in the background when the submission of the content generated more
1. Get the remote file size and information function
function GetFileSize ($url) {
$url = Parse_url ($url);
if ($fp = @fsockopen ($url [' Host '],empty ($url [' Port ']): $url [' Port '], $error)] {
fputs ($fp, "get". Empty ($url [' path '
This example analyzes the PHP bubble sort and fast sort algorithm. Share to everyone for your reference, specific as follows:
$a =array (' 3 ', ' 8 ', ' 1 ', ' 4 ', ' 11 ', ' 7 ');
Print_r ($a);
$len = count ($a); From small to large for ($i =1
function is very simple, there are comments in the code, directly to everyone on the code
Copy Code code as follows:
/**
* Upload pictures to generate thumbnails
*
* Need support for GD2 library
*
* Initialization requires
Date--Format a local time/date
Gmdate-Formats a GMT/UTC date/time and returns Greenwich Standard (GMT).
For example, the time zone we're in is +8, so the server should return the following script:
Current time assumption is 2007-03-14 12:15:27
This example describes how PHP obtains the client browser name and version. Share to everyone for your reference, specific as follows:
See a function in Ecshop get_user_browser () to get the name and version of the browser. Although the information
This article for everyone to share the PHP online bookmark system, interested in the small partners can refer to
1. Demand AnalysisFirst, you need to identify each user. There should be a validation mechanism.Second, you need to save a bookmark for
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