Coder Social home page Coder Social logo

walkor / workerman-todpole Goto Github PK

View Code? Open in Web Editor NEW
1.8K 140.0 677.0 994 KB

HTML5+WebSocket+PHP(Workerman) , rumpetroll server writen using php

Home Page: http://kedou.workerman.net

License: MIT License

PHP 99.67% Batchfile 0.33%
workerman websocket realtime-chat realtime-games

workerman-todpole's Introduction

workerman-todpole

蝌蚪游泳交互程序 使用PHP(workerman框架)+HTML5开发

小蝌蚪游戏截图

线上DEMO效果点击这里

系统安装部署

1、下载或者clone代码到本地 (详细安装教程见 www.workerman.net/workerman-todpole )

2、运行composer install 安装

3、linux系统命令行进入目录运行 php start.php start -d。windows系统启动方法为双击start_for_win.bat

4、浏览器访问地址 http://ip:8383 (ip为服务器ip)如图:(如果无法打开页面请尝试关闭服务器防火墙)

虚拟空间(静态空间、php、jsp、asp等)安装部署

虚拟空间安装请使用这个包 网页空间版本

非常感谢Rumpetroll

本程序是由 Rumpetroll 修改而来,主要是后台由ruby改成了php。非常感谢Rumpetroll出色的工作。
Repo: https://github.com/danielmahal/Rumpetroll

workerman-todpole's People

Contributors

jeijei4 avatar walkor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

workerman-todpole's Issues

支持https吗?

我在本机起了一个,反向代理的时候http协议正常,但是https协议没有反应,请问是什么原因?

请求BUG更新

通过代码运行的聊天室,当用户A刷新界面时,用户B的界面上会多出一名用户C,A再次刷新界面,用户B界面多处用户D,,,,,,,如此多处很多无用用户。而当用户A退出后,用户B的界面上始终有用户A。
而官网上的DEmo上并没有如此BUG,请问怎么改

反代

请问大佬,我反代之后只有一个聊天室标题了,是不是需要添加啥配置?

php start.php start提示信息,todpole聊天室无法正常运作

使用php start.php start命令的时候提示了下面的信息。
Workerman[start.php] start in DEBUG mode
date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in file /var/www/html/workerman-todpole/vendor/workerman/workerman/Worker.php on line 2105

我的文件路径是这个:/var/www/html/workerman-todpole
照着这个安装教程做的:
阿里云详细安装教程之centos系统
1、yum install php-cli php-process git
2、下载 workerman-todpole 并解压到任意目录(下载地址在本页面上方)
3、cd workerman-todpole && php start.php start -d
4、大功告成!浏览器访问 http://ip:8383 (如果无法访问请检查服务器防火墙)

加入星球

地图太大,人人都依赖聚落,加入星球可以解决这个问题:)
Just for Fun.

屏蔽繁体ID

应该屏蔽带繁体字(**人)或敏感字的蝌蚪,不初始化这些蝌蚪。
这些**人在Workerman里基本都是**反党的言论。
qq photo20140811194900

start_for_win.bat Fatal error, no pcntl extension

While running start_for_win.bat
Fatal error: Call to undefined function Workerman\Lib\pcntl_signal() in \Workerman\Lib\Timer.php on line 56:

pcntl_signal(SIGALRM, array('\Workerman\Lib\Timer', 'signalHandle'), false);

http://php.net/manual/en/intro.pcntl.ph
Note: This extension is not available on Windows platforms
http://php.net/manual/en/pcntl.installation.php
Note: Currently, this module will not function on non-Unix platforms (Windows).

Do you have any compatible alternative?

一个gateway进程在onStop的时候会把别的进程的绑定信息也删除掉

Hi,大大好,我是群里的I`m me,我有个问题请教下哈:

public function onStop()
{
    Store::deleteAll();
}

我telnet 到monitor上之后,随便kill一个gateway进程,这个进程退出的时候会调用这个onStop函数,然后会把别的进程的绑定信息也删除,这个gateway退出之后,master会再起一个进程来代替这个gateway进程,然后这个进程会把他的绑定信息加到里面去,这个时候系统里面记录的就只有一个可用的进程了。
我把onStop改成下面这个样子就可以正常工作了,麻烦大大你帮忙看看哈。
public function onStop()
{
\Man\Core\Lib\Mutex::get();
$key = 'GLOBAL_GATEWAY_ADDRESS';
$addresses_list = Store::get($key);
if(empty($addresses_list))
{
$addresses_list = array();
}

     unset($addresses_list["udp://".$this->lanIp.':'.$this->lanPort]);
     Store::set($key, $addresses_list);
     \Man\Core\Lib\Mutex::release();
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.