摘要: 本人的解决情况记录 框架php yii2 1,$header = ['Content-Type' => 'application/json'];//返回 Empty reply from server2, $header = ['Content-Type: application/json'];// 阅读全文
posted @ 2022-07-05 17:13 皓月key 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 确认请求的域名或者ip可访问,直接看防火墙,关闭后再试就成功了 我的情况是这样,做个记录 阅读全文
posted @ 2022-06-29 13:48 皓月key 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 1,PHP魔术方法 1.__construct(),类的构造函数 2.__destruct(),类的析构函数 3.__call(),在对象中调用一个不可访问方法时调用 4.__callStatic(),用静态方式中调用一个不可访问方法时调用 5.__get(),获得一个类的成员变量时调用 6.__s 阅读全文
posted @ 2022-03-02 11:43 皓月key 阅读(53) 评论(0) 推荐(0) 编辑
摘要: php -v 报错如下 dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib Referenced from: /usr/local/opt/php@7.1/bin/php Reason: image not f 阅读全文
posted @ 2022-02-28 15:14 皓月key 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 之前都是在window上搭建git项目 在用git bash控制项目版本时目录后面都会默认跟随当前分支的名称,这样是挺方便的一目了然,但最近想在自己mac上搭建一个git项目却发现mac是没有git bash的,使用的是mac os系统自带的终端集成默认是不显示分支名称的,这很不方便查看分支,怎么办 阅读全文
posted @ 2020-05-06 10:20 皓月key 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript" language="JavaScript"> var myScrollTop=function() //获得当前窗口显示区顶点位置 { return document.documentElement.scrollTop?document. 阅读全文
posted @ 2020-04-30 14:14 皓月key 阅读(1469) 评论(0) 推荐(0) 编辑
摘要: 找到/application/Admin/Controller/PublicController.class.php 将27-31行去除: $loginAllowed = session("__LOGIN_BY_CMF_ADMIN_PW__"); if (empty($loginAllowed)) 阅读全文
posted @ 2020-04-29 15:50 皓月key 阅读(1885) 评论(0) 推荐(0) 编辑
摘要: 链接: https://pan.baidu.com/s/1EqTqWmDSG4XTFD-_G27jQQ 提取码: h257 阅读全文
posted @ 2020-04-29 11:30 皓月key 阅读(318) 评论(0) 推荐(0) 编辑
摘要: php 调试工具 主要是三个文件 新建1, run.php 可根据自己屏幕大小调适合自己的css样式 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/x 阅读全文
posted @ 2020-04-29 11:12 皓月key 阅读(994) 评论(0) 推荐(0) 编辑
摘要: PHP 7.4 主要新增了以下几个特性: 短闭包函数(short closure) 预加载提交性能 属性类型限定 Improved type variance(不会翻译) 三元运算简写 数组展开运算 新增类的魔术方法:serialization 数字分隔符 运算优先顺序 允许在__toString中 阅读全文
posted @ 2020-04-28 14:33 皓月key 阅读(408) 评论(0) 推荐(0) 编辑