Many people say that the algorithm is the core of the program, the quality of the algorithm determines the program. As a primary phper, although it is seldom exposed to algorithmic aspects of things. However, the basic sorting algorithm should be
PHP Code Encryption Class
/*
* @auther: Wangyaofeng
* @time: 2014.11.6
* @action: Encrypt the PHP project, note that if there is a framework directory in the project or there is no need to encrypt the directory,
PHP recursively iterates through all files in the specified directory and counts the number of files
Recursive functions to traverse directories and files under a specified file
function Total
Use get to pass in Parameter http://domain/download.php?file= ' savepath on server ' &name= ' file name ' want '
Incoming file path and file name, respectively, for reading files and renaming files
if (Empty ($_get[' file '
This article mainly introduces 2 more classic PHP cryptographic decryption function sharing, one is discuz! authcode cryptographic function (with detailed decomposition), one is encrypt () function, are more classic, need friends can refer to the
The example in this article describes how PHP compares two string lengths. Share to everyone for your reference. The implementation method is as follows:This code calculates the length of the two string and calculates its difference
/**
* Created by Phpstorm.
* User:jifei
* DATE:15/11/24
* time:20:58
*
* Millions of users per minute, real-time statistics the total number of online users in the last 15 minutes
*/
Class Onlineuser
{
The super global variables in PHP are:$GLOBALS, all global variable arrays (like the global keyword, which allows access to global variables within a function-for example, in the form of $globals[' myvariable '). )$_server, array of server
I like to read novels in my spare time (of course, genuine, pirated), many of the novel website ads, restrictions a lot, I would like to engage in an ad-free site. Down from the Internet a lot of programs, either do not meet their own requirements,
Code Description: PHP-based Apple serial number query interface call code instanceAssociated data: Apple serial numberInterface Address: HTTP://WWW.JUHE.CN/DOCS/API/ID/37
// +--------------------------------------------------------
CVS file import and Export PHP class code, through this custom PHP class can achieve database data and CVS file conversion
/**
* CSV file Processing class
*/
Class csv{
Public $csv _array; CSV array data
Class Validationcode
{
Property
Private $width;
Private $height;
Private $codeNum;
Private $image;
Private $disturbColorNum; Number of interfering elements
Private $checkCode;
function __construct ($width
Returns the timestamp of all months in a time period
function Monthlist ($start, $end) {
if (!is_numeric ($start) | |! Is_numeric ($end) | | ($end
$start =date (' y-m ', $start);
$end =date (' y-m ', $end);
Convert to
function Post_request ($url, $data, $referer = ") {
Convert the data array into URL Parameters like A=b&foo=bar etc.
$data = Http_build_query ($data);
Parse the given URL
$url = Parse_url ($url);
if ($url ['
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