tp6 大数据导出
Mysql , TP / 2020-07-28

public function test_down() { //$sql = ‘SELECT id,ArticleClassify,ArticleTitle FROM `test_yield` where id < 1200000’; $sql = ‘SELECT * FROM `menber` ORDER BY m_id asc’; $mark = ‘test’; $this->pu…

二维数据增加与删除
jQuery / 2020-07-22

123456789101112131415161718192021二维数组 arrays:[{"productid":"32","name":"手机"},{"productid":"322","name":"手机…

liunx 语法
Linux / 2020-07-16

1234567891011一共开了多少的 php-cgi 进程 ps -fe |grep "php-fpm"|grep "pool"|wc -l 有多少个php-cgi进程用来处理tcp请求 netstat -anp|grep "php-fpm"|grep "tcp"|grep "pool"|wc …

pcntl_fork 多进程
Linux , TP / 2020-07-16

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657<?php set_time_limit(0); if (!function_exists("pcntl_fork")&#4…

PHP开发技巧
TP / 2020-07-09

#电话号码切割 set @mobile := ‘18581066861’; select concat(left(@mobile,3), ‘*****’, right(@mobile,4)) as mobile; #一维数组入库,二维 value 需要循环拼接 $tmp = []; $sql = “insert into table_name (” …

docker学习记录(一)
Linux / 2020-07-08

安装 curl -fsSL https://get.docker.com | bash -s docker –mirror Aliyun 设置仓库 sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 安装 Docker Engine-Community sudo yum install docker-…