随笔分类 - php
摘要:php -m |grep amqp 一、安装rabbitmq-c-0.8.0 当前目录为 /usr/local/src/ [root@localhost src]# wget https://github.com/alanxz/rabbitmq-c/releases/download/v0.8.0/
阅读全文
摘要:打印SQL:DB::connection()->enableQueryLog(); 这里是SQL执行语句... $logs = DB::getQueryLog();dd($logs);
阅读全文
摘要://判断字符串转数组private function strToArray($ids){ if(!str_contains($ids,",")) return _response([],100,"data error"); $ids = explode(",", $ids); if(count($i
阅读全文
摘要:1:ErrorException (E_NOTICE) Undefined index: host env配置必须带http://
阅读全文
摘要:$id = $_REQUEST;isIdcard($id['id']);function isIdcard($id){ if(!empty($id)){ $id = strtoupper($id); $regx = "/(^\d{15}$)|(^\d{17}([0-9]|X)$)/"; $arr_s
阅读全文
摘要:模型层 /* * 进房间数据处理 * */ public function joinRoom_deal($user,$numb) { // 房间信息 if($room = Db::name('room')->where('number',$numb)->field('id,zhuang,users,ready,li...
阅读全文

浙公网安备 33010602011771号