Copy codeThe Code is as follows: /**
* File Upload class
*/
Class uploadFile {
Public $ max_size = '000000'; // sets the size of the uploaded file.
Public $ file_name = 'date'; // The rename method indicates that the name is named by time. Otherwise,
Good ajax paging Ajax
// This paging class does not process SQL;
// The paging function is greatly accelerated
// Http://blog.csdn.net/fkedwgwy
// Xiaoxiang blog-Xiaoxiang
/**
Demo
Require_once ('../libs/classes/page. class. php ');
$ Page = new
Php adds the watermark function and thumbnail function code to the image. Php: Function code used to add watermarks to images and thumbnails *** used to add watermarks to images ** @paramstringincludesimgtarget image format: .imagespic.jpg * @
String truncation code in phpthink-supports Chinese and other encoding. A good support for Chinese and other encoding truncation functions without garbled characters. if you need it, please refer to it. The code is as follows: Copy the code ** + ----
Nice ajax paging class
// This paging class does not process SQL;
// The paging function is greatly accelerated
// Http://blog.csdn.net/fkedwgwy
// Xiaoxiang blog-Xiaoxiang
/**
Demo
Require_once ('../libs/classes/page. class. php ');
$ Page = new
Data cache: the data cache here refers to the database query cache. each time you access the page, it first checks whether the cache data exists. if it does not exist, it connects to the database to obtain the data, serialize the query results and
Php file Upload class code. For more information about php learning, see. This code is well encapsulated for upload processing. for details, refer.
The code is as follows:
/*** File Upload class*/Class uploadFile {Public $ max_size = '000000'; /
Findbyfield function prototype Copy the code code as follows:/** * Returns the first record with the specified field value * * @param string $field * @param mixed $value * @param string $sort * @pa RAM Mixed $fields * * @return Array */function &
/**
* Validation Class
*
* @lastmodify 2014-5-16
* @author jy625
*/
Class verifyaction{
/**
* is a null value
*/
public static function IsEmpty ($STR) {
$str = Trim ($STR);
Return!empty
Log Interface SpecificationIn this paper, the general interface specification of Log class library is developed.The main purpose of this specification is to allow the Log class library to record log information in a simple and generic manner by
Specification for PHPPSR-3 log interfaces
Log interface specificationThis article develops a general interface specification for the log class library.The main purpose of this specification is to allow the Log class library to record the
Php redies encapsulation class
/**
* Redis Operations Support Master/Slave load clusters
*
* @ Author jackluo
*/
Class RedisCluster {
// Whether to use the M/S read/write Cluster
One is the POST request function of curl, is mainly used for the development of Platform API, the processing function of the request interface, if you have multiple platforms, to pass data between each other, use this function absolutely useful:
PHP array Operation class instance, PHP array instance
The examples in this article describe the PHP array manipulation classes. Share to everyone for your reference. Specific as follows:
Class arrayhelper{/** * Remove blank elements from the array
Zend Framework Tutorial View component Zend_view usage, Zendzend_view
This example describes the Zend Framework Tutorial View component Zend_view usage. Share to everyone for your reference, as follows:
Zend_view is the view component of the Zend
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.