上一页 1 2 3 4 5 6 ··· 32 下一页
摘要: 转:https://www.pianshen.com/article/6570998333/ tp6已经自己封装好了跨域请求的内置中间件,自己都快自己封装好了才发现。 使用; 在 app\middleware.php 文件中,引入内置中间件即可 \think\middleware\AllowCros 阅读全文
posted @ 2021-05-30 08:02 garfieldtom 阅读(836) 评论(0) 推荐(0) 编辑
摘要: Deepin 安装jdk1.8 转:https://www.djc8.cn/archives/deep-install-jdk18.html 作者: 小蚊子 时间: 2020-04-08 12:03:00 分类: linux学习 JDK的安装我觉得网上应该有很多了,我这里写个Deepin下JDK的安 阅读全文
posted @ 2021-05-23 07:58 garfieldtom 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 转自: https://www.cnblogs.com/JoePotter/p/14633345.html stream{ upstream sqlserver{ server 172.16.102.8:1433 weight=1 max_fails=2 fail_timeout=30s; } se 阅读全文
posted @ 2021-05-19 16:58 garfieldtom 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 转:https://www.freesion.com/article/20611012050/ 文章目录 WSL2运行图像应用或图形界面 安装WSL2 前置工作 1. 在控制面板,开启[虚拟机平台]和[Windows Linux子系统]这两个功能,然后重启 2. 下载WSL2 Linux Kerne 阅读全文
posted @ 2021-05-11 17:45 garfieldtom 阅读(2780) 评论(0) 推荐(1) 编辑
摘要: <?php function curl_get_https($url) { $curl = curl_init(); //如果需要参数,设置POST参数 $post_string = array('usercode'=>'123456','password'=>'123'); curl_setopt 阅读全文
posted @ 2021-04-22 17:01 garfieldtom 阅读(281) 评论(0) 推荐(0) 编辑
摘要: import urllib.request import ssl ssl._create_default_https_context = ssl._create_unverified_context response = urllib.request.urlopen('https://www.bai 阅读全文
posted @ 2021-04-22 16:53 garfieldtom 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: composer更新时遇到错误: [Composer\Downloader\TransportException] Error while processing content unencoding: Unknown failure within decompression software. 此时 阅读全文
posted @ 2021-03-29 14:44 garfieldtom 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 在ThinkPHP中,如果代码这样写: $res["user"] = "garfieldtom"; $res["age"] = "12"; $json = json($res); echo $json->getContent(); $list = json_decode($json->getCont 阅读全文
posted @ 2021-02-24 21:02 garfieldtom 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 如果想要隐藏ThinkPHP返回错误信息中的具体内容,可以修改ThinkPHP的默认错误页面,在文件 vendor\topthink\framework\src\tpl\think_exception.tpl中,可以修改这个模板。 阅读全文
posted @ 2021-01-26 06:32 garfieldtom 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 别人的数据库做接口,用到了中文字段,会报错,需要修改db/builder/mysql.php \w只匹配数字字母下划线,匹配不到汉字。 所以我们要在正则表达式上加上汉字匹配 if ($strict && !preg_match('/^[\w\.\*\x00-\xff]+$/', $key)) { t 阅读全文
posted @ 2020-12-11 10:37 garfieldtom 阅读(314) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 32 下一页