Workerman3.0.7 integration of Redis and ThinkPHP3.2.3

Source: Internet
Author: User

/**

* @author Happyliu<[email protected]>

* Program code please visit: http://down.51cto.com/data/2013151

*/


======= Program Description ==============================================

This program is rewritten by Workerman-chat;

Workerman version: 3.0.7

thinkphp version: 3.2.3


======= Server Environment ============================================

1. Ability to run the Workerman framework

2. Support Redis extension in PHP-CLI mode


======== Installation Instructions =============================================

Upload to the Linux Server Web directory to access the front-end test via a URL address

http://xxxx/index.php


Run the back-end framework:

./wmchat/php start.php Start



======== How to use =============================================

Use thinkphp in event.php or in other businesses

R (' Home/index/index '); Transfer parameters See TP manual R method


Using Redis in event.php or other business

Redisdb::instance (' Redis ')->get (' key ');




This article is from the "happy Programming _ Endless" blog, please be sure to keep this source http://happyliu.blog.51cto.com/501986/1626528

Workerman3.0.7 integration of Redis and ThinkPHP3.2.3

Related Article

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.