12 2018 档案
摘要:话不多说,直接上代码 是 true 这是因为 php是弱类型语言,会把7.php强制转化 7 ,所以解决的办法是加 true false 但是开启后,也会导致 为false
阅读全文
摘要:http强制跳转https出现了问题。修改nginx配置如下即可解决: 301 Moved Permanently 被请求的资源已永久移动到新位置,并且将来任何对此资源的引用都应该使用本响应返回的若干个 URI 之一 307 Temporary Redirect 请求的资源现在临时从不同的URI 响
阅读全文
摘要:首先,这是不可能实现的 mysql的查询的顺序 select -> from-> where->group by->having->order by. 但mysql的解析器执行顺序: from-> where->group by->having->select->order by. 所以,从执行的流
阅读全文
摘要:$lastMondy = date('Y-m-d', strtotime('-2 sunday +1 days', time()));$lastSundy = date('Y-m-d', strtotime('-1 sunday', time()));
阅读全文
摘要:array_filter()用回调函数过滤数组中的元素。依次将数组中的元素传递给回调函数,如果回调函数返回true,则被过滤的元素作为返回数组的元素,并最终一起返回。数组的键名保持不变。array_mpa()数组的各元素应用回调函数。各元素应用回调函数后,得到的结果作为array_map()函数最终
阅读全文
摘要:server { listen 80; server_name t-cl.orangevip.com; rewrite ^(.*)$ https://$host$1 permanent;} server { listen 443; server_name t-cl.orangevip.com; ch
阅读全文