摘要: 反向代理,负载均衡,正向代理,http服务器(动静分离) 反向代理 反向代理应该是Nginx做的最多的一件事了,什么是反向代理呢,以下是百度百科的说法:反向代理(Reverse Proxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到 阅读全文
posted @ 2020-12-04 19:59 诸天一根草凡尘一粒沙 阅读(79) 评论(0) 推荐(0) 编辑
摘要: $a = 'A0🏰 南澳海景别墅民宿~晓文'; preg_match_all('/[\x{4e00}-\x{9fff}\d\w\s[:punct:]]+/u',$a,$result); echo '<pre/>';print_r($result[0][0]);die; //A0 南澳海景别墅民宿 阅读全文
posted @ 2020-07-29 15:32 诸天一根草凡尘一粒沙 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 在php配置文件中 将 opcache.revalidate_freq = 60 改为 opcache.revalidate_freq = 0 阅读全文
posted @ 2020-06-28 14:50 诸天一根草凡尘一粒沙 阅读(193) 评论(0) 推荐(0) 编辑
摘要: git init: 初始化一个git仓库,如果做错了,显示隐藏文件,删除.git目录 git status: 查看状态 git add 文件名: 添加某个文件 git add .(-A): 添加所有修改 git checkout 文件名 在add之前回退 git reset --hard 在add之 阅读全文
posted @ 2020-06-04 09:27 诸天一根草凡尘一粒沙 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1、允许单个域名访问 header('Access-Control-Allow-Origin:http://www.startphp.cn'); header('Access-Control-Allow-Methods:POST'); //表示只允许POST请求 header('Access-Con 阅读全文
posted @ 2020-06-02 17:48 诸天一根草凡尘一粒沙 阅读(975) 评论(0) 推荐(0) 编辑
摘要: 对接万里牛erp 的curl方法 public function curlpost($url,$data){ $headerArray = array("Content-type: application/x-www-form-urlencoded;charset=UTF-8","Accept: a 阅读全文
posted @ 2020-06-02 17:35 诸天一根草凡尘一粒沙 阅读(420) 评论(0) 推荐(0) 编辑
摘要: // 启动事务 Db::startTrans(); try{ // 提交事务 Db::commit(); return json(['code'=>200,'msg'=>'提交成功']); }catch(\Exception $e){ // var_dump($e->getMessage()); D 阅读全文
posted @ 2020-06-02 17:28 诸天一根草凡尘一粒沙 阅读(160) 评论(0) 推荐(0) 编辑
摘要: function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var r = window.location.search.substr(1).mat 阅读全文
posted @ 2020-06-02 17:27 诸天一根草凡尘一粒沙 阅读(134) 评论(0) 推荐(0) 编辑
摘要: var serializeUrl = $("#inputForm").serialize(); 阅读全文
posted @ 2020-06-02 17:26 诸天一根草凡尘一粒沙 阅读(953) 评论(0) 推荐(0) 编辑
摘要: $included_files = get_included_files(); foreach ($included_files as $filename) { echo "$filename\n"."<br>";}die; 阅读全文
posted @ 2019-01-05 16:10 诸天一根草凡尘一粒沙 阅读(546) 评论(0) 推荐(0) 编辑