ThinkPHP3.1.2 comprehensive UCenter explanation

Source: Internet
Author: User
Recently, at the company's request, we wanted to develop a member Management Center website, which is a bit like QQ space. we found that UCenter has many functions similar to QQ space, so we chose UCenter as the member Management Center of the program, at the front end, I chose thinkphp3.1.2 framework for development.

Recently, at the company's request, we wanted to develop a member Management Center website, which is a bit like QQ space. we found that UCenter has many functions similar to QQ space, so we chose UCenter as the member Management Center of the program, at the front-end, I chose the WBlog I developed based on the thinkphp3.1.2 framework. However, the problem arises again, requiring members registered at the front-end of the WBlog to log on to the UCenter at the same time, this is the problem I will solve this time-ThinkPHP and UCenter integration.

I searched the internet and found that thinkphp and UCenter integrate a lot, but it seems that the more I see it, the more I feel dizzy, the less it is, the less it is. In the end, the difference is a thousand miles, which is really enough, after carefully reading the UCenter development documentation, I finally completed the integration of thinkphp and UCenter after many debugging operations. I think this result is the same from bitter water.

Tip:In the integration of thinphp and UCenter, you need to have a certain degree of PHP Basics, have some knowledge of the thinphp framework, and deploy directories and configuration data.

 

Okay, let's get started!

Download and install the following program

WBlog3.1.2

UCenter_Home_2.0_ SC _UTF8

UCenter 1.6.0

Install the WBlog program

Before writing this article, the published WBlog program has no member center. the member center for this test is only written later, if you can wait, you will not be able to wait until the member center program of WBlog is released. if you cannot wait, the following program integration will not be affected, because you can find or write a simple thikphp program that meets the following two conditions:

1. you can register a member.

2. you can log on and exit.

Here I will use WBlog3.1.2. in the root directory of the server, create the directory wblog1, copy all the files in the downloaded WBlog directory of WBlog3.1.2 to wblog1, and enter http in the browser: // 127.0.0.1/wblog1/install/and install WBlog3.1.2.

Tip:The most common mistake during integration is the path. the root directory of the next integration operation is the wblog1 directory, so it should be different from the root directory of the server.

Install UCenter 1.6.0 (simplified UTF-8)

Download this program to the official website. create a ucenter directory in wblog1 in the root directory of the website, decompress UCenter 1.6.0, and copy all the files in the unzipped upload directory to the newly created ucenter directory, enter http: // 127.0.0.1/wblog1/ucenter/install/in the browser to install UCenter 1.6.0.

Install UCenter_Home_2.0_ SC _UTF8 (simplified Chinese version)

Create the ER directory in wblog1 in the root directory of the website, decompress UCenter_Home_2.0_ SC _UTF8, and copy all the files in the decompressed upload directory to the new ER directory. Enter http: // 127.0.0.1/wblog1/uh/install/in the browser to install UCenter_Home_2.0_ SC _UTF8.

Note that the sequence of UCenter 1.6.0 and UCenter_Home_2.0_ SC _UTF8 installation cannot be reversed; otherwise, the installation cannot be performed.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.