The site needs to add a new constant, open the local config.php file, think about the hidef that was tested a few years ago and the APC upgrade define performance.My program has a different configuration for development, testing, production servers,
In PHP, we all know that there are special MB_SUBSTR and Mb_strlen functions that can intercept and compute the length of Chinese, but because these functions are not PHP's core functions, they are often not open. Of course, if you are using your
A few days ago wrote a table program, using the hash algorithm is CRC32. The function of the table is as follows:
Copy Code code as follows:
function _gethash ($username)
{
$hash = CRC32 ($username)% 512;
return $hash;
}
This article illustrates how many palindrome numbers are in the middle of a two-digit PHP output. Share to everyone for your reference. The specific analysis is as follows:
"Palindrome number" is a number. such as: 98789, this number is reading is 9
This article is an example of how PHP Chinese and simplified are converted to each other. Share to everyone for your reference. The specific analysis is as follows:
The following code uses the traditional and Simplified Chinese library tables to
Array_push () Definition and usage
The Array_push () function adds one or more elements (into the stack) to the end of the array of the first argument, and then returns the length of the new array.
This function equals multiple calls to the $array [
Next () Definition and usage
The next () function moves the pointer to the current element to the position of the next element and returns the value of the element.
If the internal pointer already exceeds the last element of the array, the
This example describes how PHP is relative to the current file include other files. Share to everyone for your reference. The specific analysis is as follows:
The following code first obtains the current file path and then contains other PHP files
Preface
As the name suggests, the file cache memory cache is to transfer the data stored in the file into memory, so that the disk operation into memory operation, which can greatly improve the speed of data access, and can realize the distributed
After 4.1.0 from PHP, the original location may change as the value of the usort is compared, as the document says:
If two members compare as equal, their order in the sorted array is undefined.
That is, if the 2 values of the comparison are the
This article describes the method of PHP parsing RSS. Share to everyone for your reference. Specifically as follows:
1. PHP code is as follows:
Copy Code code as follows:
Require "xml/rss.php";
$rss = new Xml_rss
This article illustrates how PHP converts a text file to a CSV output. Share to everyone for your reference. The implementation methods are as follows:
This class provides a quick, easy way to convert a fixed-width CSV file, and it can be used to
The example in this article describes the solution for PHP to generate Excel column names that exceed 26 columns greater than Z. Share to everyone for your reference. The specific analysis is as follows:
We generate Excel using the Phpexcel class,
This article illustrates the method of Php+mysqli to implement batch substitution database table prefixes. Share to everyone for your reference. The specific analysis is as follows:
In PHP sometimes we want to replace the table prefix in the
This article will take joomla! background link as an example to explain how to "modify" our background link to make it more secure.
Principle: Register the session with a specific file for the background entry, otherwise the failure exits. Direct
This article illustrates the solution of Chinese garbled code when PHP generates two-dimensional codes. Share to everyone for your reference. The specific analysis is as follows:
Recently done a scan two-dimensional code to get a vcard project,
Get the actual demo of the title of the page through PHP:
Sample code:
Copy Code code as follows:
/*
function: Get the content on the URL page
Parameters: $_post[' url ']
*/
Set maximum number of seconds to execute
Ini_set
This example describes the detailed steps of the jquery+php implementation of the dice lottery game. Share to everyone for your reference. The specific analysis is as follows:
The game is a monopoly game for the background, the comprehensive use of
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