workerman
首页
问答
分享
手册
市场
商业
99客服系统
泡泡IM聊天系统
Webman AI
物联网
赞助商
webman
AI助手
搜索
+
发布
提问
分享
webman插件
webman应用
登录
注册
问答
phar无法对可执行文件打包,打包后php调用exec()函数访问不到该可执行文件
但是打包后,exec()函数就不能访问这个可执行文件了,webman控制台提示 `sh: 1: phar:///code/webman-project-v1.0.phar/app/bin/AServer:
not
问答
关于协程下异步请求的问题
并使用单例模式来实现全局只有一个请求类,代码如下,我发现当我用浏览器请求这个接口,要是一个接口请求完后再请求接口的方式,每次请求这个接口都可以返回数据,但要是我并发请求这个接口,就会报错Value of type null is
not
文档
onBufferFull
0.0.0.0:8484'); $worker->onBufferFull = function(TcpConnection $connection) { echo "bufferFull and do
not
文档
例子-集群推送
isset($worker->connections[$to_connection_id])) { echo "connection
not
exists\n";
分享
绝版-打造composer离线仓库
composer.lock绝对路径,注意\要改为/ $zip_dest_dir = "D:/4.PHP/Code/wfdemo_repos";// 修改为离线仓库目录,再次运行旧的不会清空
run
lock_file composer.lock文件绝对地址 * @param string $zip_dest_dir zip文件目标目录,没有会自动生成 * @return void */ function
run
文档
add
2.5秒执行一次 $time_interval = 2.5; Timer::add($time_interval, function() { echo "task
run
前面必须加地址符 & $timer_id = Timer::add(1, function()use(&$timer_id, &$count) { echo "Timer
run
问答
sudo php gateway.php start 启动后无响应
Worker; use GatewayWorker\Register; use GatewayWorker\BusinessWorker; use GatewayWorker\Gateway; class
Run
问答
onWebSocketConnect函数触发问题
world \n"); // // $connection->send(print_r(Gateway::getClientIdByUid('123456')) ); // // //}; //
run
问答
webman-admin 插件中使用 thinkorm 在插件下的配置文件未生效
Workerman\Worker::runAll() #26 C:\Users\Administrator\Desktop\project\php\webman\start.php(4): support\App::
run
文档
添加功能模块
plugin/ai_invite/install.sql ```sql CREATE TABLE `ai_invite` ( `id` int
NOT
NULL AUTO_INCREMENT COMMENTCHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='邀请'; CREATE TABLE `ai_invite_rewards` ( `id` int
NOT
COLLATE utf8mb4_general_ci COMMENT '数据', `type` enum('register','recharge') COLLATE utf8mb4_general_ci
NOT
分享
Webman日志按日期分割
triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or
not
分享
🚀 我的第四个webman插件 exception-handler 异常插件
app/controller/Authentication.php(25): ..." } } ``` ### 自定义自己的异常类 #### 定义异常类 自定义一个:`405 Method
Not
问答
jsonRPC调用加载动态对象
report($class, $method, $success, $code, $e, $statistic_address); if(strpos($e->getMessage(),'
not
问答
[已解決]webman多进程导致mysql死锁
$rs) throw new Exception('
not
found'); $rs = Db::table('tbl_rateList')->where([ 'planID'=
问答
只是更换了服务器,一直报这个错,ws始终连接不上。
The connections between Gateway and BusinessWorker are
not
ready **!
文档
常见问题
stream_socket_client(): php_network_getaddresses: getaddrinfo for 具体域名.com failed: Name or service
not
问答
package. package_length 在使用Channel的时候,出险这样的错误提示,请问,是什么原因,如何解决
method_exists($this, $event)) { $this->worker->$event = ; } } //
Run
isset($worker->connections)) { echo "connection
not
exists\n"; return
文档
一些例子
is_file($file_to_transfer)) { exit("$file_to_transfer
not
exist\n"); } // 建立socket连接 $client = stream_socket_clientis_file($file_to_transfer)) { exit("$file_to_transfer
not
exist\n"); } // 建立socket连接 $client = stream_socket_client
分享
docker生产环境文件
/scripts/composer/2.7.9/composer.phar /usr/local/bin/composer # 解压php源代码
RUN
docker-php-source extract
问答
一直好奇webman到底有多快,今天测了一下,分享给大家,顺便想问webman你们部署docker的方案是什么?
hello world 测试 最后上结论 环境: CPU AMD 3600是6核12芯 内存 3200频率8G*2 PHP 8.1.4(x64) tp6 运行命令 php think
run
« 上一页
1
...
48
49
50
51
52
53
54
下一页 »
« 上一页
51
下一页 »
赞助商
+成为赞助商
×
请作者喝咖啡
×
🔝