A simple php paging code
Class Page {
Private $ total; // The total number of records in the data table
Private $ listRows; // number of lines displayed per page
Private $ limit;
Private $ uri;
Common JavaScript regular expressions (Mailbox, mobile phone number, QQ number, etc)
Verify mobile phone number
function isMobile(phone){
// You can modify the prefix according to the number segment.
var reValue = /^(0|
Php httpClient class
Class httpClient {
Public $ buffer = null; // buffer gets the returned string
Public $ referer = null; // referer sets the HTTP_REFERER URL
Public $ response = null; /
Scan the QR code to log on to the website using thinkPHP and the public account
Using thinkPHP and the QR code scanning function with parameters provided by the public account to enable users to log on to the website, this saves the
Example of PHP preventing remote form submission outside the site
In php development (http://www.maiziedu.com/course/php/), in order to prevent the webmaster to submit the form is nothing more than each open form or submit data will need to
Php returns the current date or the specified date is the day of the week
PHP day of the week to get the code:
Date ("l"); // data can be used to obtain the week in English, such as Sunday.
Date ("w"); // you can obtain the
Php code example for submitting form information through POST
Php uses the POST method to submit the form Information Code example. in php, the $ _ POST variable is used to obtain the form post information, and $ _ PHP_SELF indicates
Php randomly selects several non-repeating elements from the array
Php randomly selects several unique elements from the array
/*
* $ Array = the array to be filtered
* $ Total = the maximum number of items to
Use PHPZip to decompress the file
#
# PHPZip v1.2 by Sext (sext@neud.net) 2002-11-18
# (Changed: 2003-001)
#
# Makes zip archive
#
# Based on "Zip file creation class", uses zLib
#
#
Transmit SESSION information using URL
In php learning, sessions are often used. today we will talk about Sessions in detail;I. session working mechanism:When the session is enabled, the server saves the session file on the server, and then
How to prevent Image leeching on the Apache server
First explain a piece of anti-Leech and steering:What is the purpose of anti-Leech protection?Prevent other websites from stealing your images and wasting your valuable traffic.What is the
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