Generally, the ucenter is used as the intermediary, and multiple applications are added, so that multiple sites can log out synchronously.
It is not difficult to add an application to the ucenter. There are also related tutorials on the destoon
The R method of ThinkPHP is used to call the operation method of A controller, which is further enhanced and supplemented by method.
Call format of the R method:
R ('[ project: //] [group/] module/operation', 'parameters', 'controller layer name
Destoon is the preferred solution for open-source B2B (e-commerce) industry portal based on PHP + MySQL. This article briefly describes the secondary development of Destoon as follows:
I. initialize the system
The system can be initialized using
1. If yourIf the server supports. htaccess, you do not need to set, The. htaccess rule under the root directory of the website has been set.The rule (reference http://download.destoon.com/rewrite/htaccess.txt) is:
# Destoon B2B Rewrite
When using destoon to build a B2B system, many people will encounter the error message "Data Verification Failed (2)" When registering enterprise users on the enterprise site, it seriously affects users' usage. The solution is as follows:
Go to
The following improvements have been made to the Group support of ThinkPHP3.1:
Each group supports independent empty modules.
ThinkPHP3.0 and earlier versions of the group do not support defining independent empty modules. The empty module
The D method should be a lot of methods used to instantiate a custom Model class. It is an encapsulation of Model class instantiation by the ThinkPHP framework and implements the singleton mode, cross-project and group calls are supported. The call
Each URL is replaced by 6 characters, and (6 ^ 32) can have up to 1,073,741,824 short URLs.Of course, you can also record more detailed information, such as access records and creation time.If it is not enough, you can delete it for a long
PHP and JavaScript are both beginners. There is a need recently:
For example, there is a PHP multi-line string:
$a =
After being passed to JavaScript, it is equivalent:
var c='thy38\n\ csdn\n\ blog';
Because I do not know how to Google these two
To determine whether the uploaded file has been modified, You need to record the md5 value of the uploaded file. Here, record the method for obtaining the md5 value of the file.
Copy codeThe Code is as follows:If (isset ($ _ FILES ['multimedia ']) &
Still old rules, directly add code
resize ("tu.jpg", "tu_lit.jpg ); echo $ newimage-> GetLastError (); class ImageResize {private $ localimage; // the original image path is private $ remoteimage; // The thumbnail storage path is private $
ThinkPHP3.0 does not provide sufficient support for Action and View. It can only implement basic template rendering output. The multi-layer MVC feature introduced by the release of Version 3.1 brings us new ideas for implementing widgets, and how to
The zip class provided by the CI framework is simple and practical. This article will briefly introduce the use of the zip class of the CI framework.
First, import the zip class:
Copy codeThe Code is as follows:$ This-> load-> ('zip ');
In
The previous day, I wrote a piece of code for calculating the arrangement and combination because of the business needs. I sorted it out today for future use.Copy codeThe Code is as follows:/*** Mathematical problem to be solved: Calculate C (a, 1) *
I. Applicable scenarios:You cannot use the auto-increment number returned from the database to rename the uploaded image.This is determined by the process of uploading images or files.Generally, the Image Upload process is to upload the image to the
15. Research page (ResearchBuildingPage. php)
The study is relatively simple because there is no queue, but there are some special things. Let's first look at a previous processing function handlejavasiebuild ().
This function is used to deal with
Range Protocol Purpose:It is usually used for resumable data transfer, but the actual user is very large. For example, if your web server needs to output a large file, range can be used for multipart output to relieve pressure. At the same time, you
It is good to use memcache to synchronize sessions. Of course, you can also use redis to save sessions. You can enable php and store sessions to Redis cache, the following describes how to use memcache to synchronize sessions in a web Cluster:
1.
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