JS special effects code for smart and user-friendly form submission
User-friendly code
Webpage Resource Code site prompt: Test the code of js special effect code in the form submitted intelligently and in a humanized manner to
Implementation of multi-level cache-responsibility chain mode
Multi-level cache responsibility chain mode.* The client submits a request to the hander. the hander finds the function that can process the task in the responsibility chain. it
Instructions for Use-Sina PHP framework pure version 1.1 (with beautiful waterfall stream templates)
1. Xweibo is used in this example. for detailed technical description of this framework, see:Http://x.weibo.com/download.html 2. to use
Calculate the age based on the date of birth (considering the leap year)
It mainly takes into account the leap year situation. if someone is born in 2.29, then if it is not a leap year, then 2.28 will be counted as the last year.
Php image processing method, php image processing class
A previously written php program can process uploaded images online and crop images. Add a watermark image, Watermark Image exceeds the size of the target image, the watermark image
Php class for MySQL database operations
Php class for mysql database operations
//// // Database connection class ////////////////// //
Class connect {
Private $ host; // host name
Private $ name; // User
Improve the array_unique ($ array) function
After improvement, you do not need to traverse the array length before processing. you can simply traverse the array length after processing.
Function unique ($ array)
{
Sort
PHP filters HTML code spaces and returns the line break function
PHP filters html code spaces and returns the line break function
/**
* PHP filters HTML code spaces and returns the line break function
* Echo
PHP single character case-sensitive conversion class
Basic operations
/*
*
* @ Class Base_Char
* @ Author zhangys
* @ Date 2012/06/25
*/
Class Base_Var_Char
{
Public static
Php unlimited classification tree data formatting
Simplicity is king ....
Function genTree ($ items, $ id = 'id', $ pid = 'pid', $ son = 'Children '){
$ Tree = array (); // formatted tree
$ TmpMap = array (); //
Check whether the database has the same value.
$ Result = $ this-> result_row ($ query );Here, the $ this-> result_row () method is self-written,Too lazy to write the method for executing the QUERY and check result quantity,Do not know how
Php universal paging source code with a variety of paging effects [Collector Edition]
Php universal paging source code with a variety of paging effects [Collector Edition]Demo address: http://www.xiaogg.org/page/All styles:
Returns a small function with a Chinese character length.
// The length of a Chinese character. the length of a Chinese character is 1.
Function cstrlen ($ str ){
$ N = 0; $ p = 0; $ c = ";
Questions about session in php
For questions about session in php, please read this article carefully and I believe you will gain some benefits.For questions about session in php, please read this article carefully and I believe you will
Php code for converting currency numbers into Chinese capital
Php code for converting currency numbers to uppercase Chinese characters:
$ Num = round ($ num, 2); $ num = $ num * 100; if (strlen ($ num)> 10) {return "oh, sorry, the number is too
PHP remote image save to local
Simple File operations, remote image storage local.
Function get_file ($ url, $ folder, $ pic_name ){
Set_time_limit (24*60*60); // you can specify the maximum execution time.
$
Php writes a small function to check whether the data is in the currency format.
// Function name: CheckMoney ($ C_Money)
// For usage: Check whether the data is in the 99999.99 format
//
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