博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PHP IPC函数介绍---消息队列
阅读量:7282 次
发布时间:2019-06-30

本文共 726 字,大约阅读时间需要 2 分钟。

msg_get_queue — Create or attach to a message queue

msg_queue_exists — Check whether a message queue exists
msg_receive — Receive a message from a message queue
msg_remove_queue — Destroy a message queue
msg_send — Send a message to a message queue
msg_set_queue — Set information in the message queue data structure
msg_stat_queue — Returns information from the message queue data structure

#!/usr/bin/env php
'hello world','name'=>'测试')));//展示消息队列的统计信息$queue_info=msg_stat_queue($queue);print_r($queue_info);//从消息队列中接收消息,消息是以引用的方式获取msg_receive($queue,0,$msg_typei,1024,$msg,true,null,$error);print_r(unserialize($msg));msg_remove_queue($queue); //销毁消息队列

转载于:https://www.cnblogs.com/xiazh/archive/2012/11/23/2783047.html

你可能感兴趣的文章
arcgis for javascript之ArcGISDynamicMapServiceLayer图层控制的实现
查看>>
php框架的制作原理
查看>>
【Quick-COCOS2D-X 3.3 怎样绑定自己定义类至Lua之四】使用绑定C++至Lua的自己定义类...
查看>>
python中使用mahotas包实现高斯模糊
查看>>
【SVN Working copy is too old (format 10, created by Subversion 1.6)】解决方式
查看>>
ros与下位机通信常用的c++ boost串口应用--22
查看>>
Codeforces Beta Round #6 (Div. 2 Only) D. Lizards and Basements 2 dfs
查看>>
adbWireless 简单教程
查看>>
Hadoop Version History and Feature
查看>>
html5手机网站需要加的那些meta/link标签,html5 meta全解
查看>>
Codeforces Beta Round #9 (Div. 2 Only) B. Running Student 水题
查看>>
Educational Codeforces Round 12 F. Four Divisors 求小于x的素数个数(待解决)
查看>>
PHPer书单
查看>>
沉浸式导航栏
查看>>
Python中docstring文档的写法
查看>>
SSH配置文件和SSM配置文件的写法
查看>>
获取图片中感兴趣区域的信息(Matlab实现)
查看>>
NPO与X7R、X5R、Y5V、Z5U神马的有啥区别
查看>>
掌握 Linux 调试技术
查看>>
安装第三方模块方法和requests
查看>>