<p>生成</p><pre class="brush:php;toolbar:false"> use think\captcha\Captcha;  public function verify(){         $config =    [             // 验证码字体大小             'fontSize'    =>    30,         &n
Where possible begins
希望你喜欢这里。有问题,请提问,或搜索现有帖子。
真诚、友善、团结、专业,共建你我引以为荣之社区。《常见问题解答》
                        调用省市区联动
开发调优
<pre class="brush:php;toolbar:false"> public function change_select_json(){         $type = input('type','');         $id = input('id','');         if($type==1){             $where[] = ['province_num','=',$id];   &nb
522
                        centos镜像下载
开发调优
<p>下载地址:  <a href="http://archive.kernel.org/centos-vault/altarch/7.6.1810/isos/aarch64/" _src="http://archive.kernel.org/centos-vault/altarch/7.6.1810/isos/aarch64/">http://archive.kernel.org/centos-vault/altarch/7.6.1810/isos/aarch64/</a> </p><p><br/></p>
660
                        给出一个日期,判断是否是某个节气,或某节气的后
开发调优
<pre class="brush:php;toolbar:false"> function getJieQi($_year,$month,$day)    {             $year = substr($_year,-2)+0;             $coefficient = array(                 array(5.4055,2019,-1),//小寒          &
550
                        哔哩哔哩视频av和bv互转 PHP源码
开发调优
<pre class="brush:php;toolbar:false"> class Bilibili{     protected $table = "fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";     protected $tr = [];     protected $s = [11, 10, 3, 8, 4, 6];     protected $xor = 177451812;     protected $add = 8728348608;  &nb
690
                        mac使用npm安装包,报没有权限
开发调优
<p>执行代码</p><pre class="brush:php;toolbar:false">npm install -g yo generator-code</pre><p>时报错<br/></p><pre class="brush:php;toolbar:false">(base) zf@192 test % npm install -g yo generator-code npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/local/lib/node_modules/generator-code npm ERR! errno -13 npm ERR! Error: EACCES: permission de
740
                        shell 判断进程是否关闭,如果关闭,自动启用
开发调优
<pre class="brush:php;toolbar:false">#! /bin/bash nginx_procnum=`ps -ef | grep "nginx" | grep -v grep | wc -l` mysql_procnum=`ps -ef | grep "mysqld" | grep -v grep | wc -l` redis_procnum=`ps -ef | grep "redis" | grep -v grep | wc -l` memcached_procnum=`ps -ef | grep "mem
516
                        linux命令 set -ex 什么意思
开发调优
<p style="margin: 10px auto; font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: medium; white-space: normal;">-e 脚本中的命令一旦运行失败就终止脚本的执行<br/>-x 用于显示出命令与其执行结果(默认shell脚本中只显示执行结果</p><p style="margin: 10px auto; font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: medium; white-space: normal;">+ex表示不终止错误,不显示结果</p><p><br/></p>
628
                        linux 查询占用的端口
开发调优
<p><span style="color: rgb(185, 189, 182); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 13px; white-space: pre-wrap; background-color: rgb(27, 36, 38);">lsof -i:端口号</span></p>
572
                        mysql 设置字段的默认值
开发调优
<p>设置表zf_user  的name字段的默认值为匿名<br/></p><pre class="brush:php;toolbar:false">ALTER TABLE zf_user ALTER COLUMN name SET DEFAULT '匿名';</pre><p><br/></p>
521
                        mysql 设置字段的默认值
开发调优
<p>设置表zf_user  的name字段的默认值为匿名<br/></p><pre class="brush:php;toolbar:false">ALTER TABLE zf_user ALTER COLUMN name SET DEFAULT '匿名';</pre><p><br/></p>
563
                        h5跳转到微信公众号关注页面
开发调优
<p><br/></p><p>扫码进入公众号</p><p>打开查看网页源代码</p><p>搜索找到</p><p><img src="http://oss1.wangmingchang.com/mac/MdImd/20220508133457.png" title="1651988088176048.png" alt="image.png" width="1003" height="427" style="width: 1003px; height: 427px;"/></p><p><br/></p><p>然后base64加密 这个数字  得到 MzAxMzMxNjIxNA==</p><p>加入链接得到:   <a href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzAxMzMxNjIxNA==#wechat_redirect" _src="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzAxMzM
644
                        js 字符和数组的转化
开发调优
<pre class="brush:php;toolbar:false">     var array= [{111},{222},{333}]       //将数组对象转为字符串数组     var arrayStr = JSON.stringify(array)        //将数组字符串转为数组对象     var array = JSON.parse(arrayStr)</pre><p><br/></p>
547
                        php验证邮箱
开发调优
<pre class="brush:php;toolbar:false"> if (!filter_var($data['email'],FILTER_VALIDATE_EMAIL)) {                  return jserror('Email address is incorrect. ');             }</pre><p><br/></p>
537