随笔分类 -  其他

摘要:只需在nginx的配置文件中的http配置项中加上 add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers X-Requested-With; add_header Access-Contro 阅读全文
posted @ 2022-03-02 09:53 pengcx 阅读(414) 评论(0) 推荐(0)
摘要:来源:https://developers.weixin.qq.com/community/pay/doc/000c663ae888489e75caed93551800 阅读全文
posted @ 2022-01-05 15:02 pengcx 阅读(416) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-08 17:37 pengcx 阅读(199) 评论(0) 推荐(0)
摘要:来源:https://www.cnblogs.com/caidingyu/p/11904277.html x509证书一般会用到三类文,key,csr,crt Key 是私用密钥openssl格,通常是rsa算法。 Csr 是证书请求文件,用于申请证书。在制作csr文件的时,必须使用自己的私钥来签署 阅读全文
posted @ 2021-10-21 17:27 pengcx 阅读(383) 评论(0) 推荐(0)
摘要:server { listen 80; server_name xxxxxxx; rewrite rewrite ^(.*)$ https://$server_name$1 permanent; } //配置多个域名 server { listen 80 default_server; #liste 阅读全文
posted @ 2021-10-04 11:54 pengcx 阅读(102) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-02 13:40 pengcx 阅读(471) 评论(0) 推荐(0)
摘要:idea open打开项目之后,project里没有目录结构。 按下列步骤操作: 1.关闭IDEA, 2.然后删除项目文件夹下的.idea文件夹 3.重新用IDEA工具打开项目 阅读全文
posted @ 2021-06-30 09:43 pengcx 阅读(423) 评论(0) 推荐(0)
摘要:来源 https://www.cnblogs.com/myshowtime/p/14353777.html 阅读全文
posted @ 2021-02-08 15:37 pengcx 阅读(66) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-08-26 16:24 pengcx 阅读(148) 评论(0) 推荐(0)
摘要:cmd 已管理员身份打开命令控制台 阅读全文
posted @ 2020-03-10 14:54 pengcx 阅读(177) 评论(0) 推荐(0)
摘要:来源:https://www.cnblogs.com/lightsrs/p/9612409.html 打开http://www.xdebug.org/download.php下载相应的版本 但得注意须下载跟机器上安装的php匹配的版本才行。所以可以将phpinfo网页的信息拷贝到http://www 阅读全文
posted @ 2019-08-22 17:07 pengcx 阅读(185) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_39820924/article/details/80773329 阅读全文
posted @ 2019-08-15 11:49 pengcx 阅读(95) 评论(0) 推荐(0)
摘要:对查询出来的数据,要做非空判断 阅读全文
posted @ 2019-08-01 17:27 pengcx 阅读(147) 评论(0) 推荐(0)
摘要:只要我们对有疑问的代码进行框选,然后右键点击git->Show History for Method ,phpstorm就会去git history中去检查这行代码在历史记录中出现的状态。 阅读全文
posted @ 2019-07-26 09:47 pengcx 阅读(5029) 评论(0) 推荐(0)
摘要:URL 地址: https://www.easyswoole.com/Cn/Video/income.html项目地址在: https://github.com/easy-swoole/easyswoole 阅读全文
posted @ 2019-07-03 14:54 pengcx 阅读(2168) 评论(0) 推荐(0)
摘要:来源:https://www.cnblogs.com/henryhappier/archive/2011/03/03/1969564.html 一、浏览器允许每个域名所包含的cookie数: Microsoft指出InternetExplorer8增加cookie限制为每个域名50个,但IE7似乎也 阅读全文
posted @ 2019-06-14 16:27 pengcx 阅读(573) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-03-22 19:04 pengcx 阅读(178) 评论(0) 推荐(0)
摘要:header("Access-Control-Allow-Origin: 域名");header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");header('Access-Contro 阅读全文
posted @ 2018-07-24 15:56 pengcx 阅读(96) 评论(0) 推荐(0)
摘要:1、整洁的代码力求集中。每个函数、每个类和每个模块都全神贯注于一件事,完全不受四周细节的干扰和污染。 2、简单代码规则--能通过所有测试--没有重复代码--体现系统中的全部设计理念--包括尽量少的实体,比如类、方法、函数等。3、减少重复代码,提高表达力,提早构建简单抽象。 4、别害怕长名称、别害怕花 阅读全文
posted @ 2018-04-03 15:38 pengcx 阅读(161) 评论(0) 推荐(0)
摘要:1、防止网站被镜像 现象:他人域名访问到的是我的网站解析的ip地址我的 解决方法: http.ini里可以这样写 .htaccess里可以这样写 代码的意思非常简单:访问这个网站的域名如果不是"www.web.cn"就自动跳转到"www.web.cn"上。这样设置就不怕自己辛辛苦苦维护的网站被别人镜 阅读全文
posted @ 2018-03-26 14:23 pengcx 阅读(286) 评论(0) 推荐(0)