上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 41 下一页
摘要: Db::name('tiwen') ->where('user_id', $user_id) ->where(function ($query) { $query->where(function ($q1) { $q1->where([ 'is_status' => 3, 'is_pingjia' 阅读全文
posted @ 2020-12-03 19:14 study_php_java_C++ 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 网上搜索的其他方法都试过,不行 比如设置权限,开放端口,配置数据库... 最好偶然一个搜索查看可能原因是防火墙端口问题: vim /etc/sysconfig/iptables 在文件中添加下面语句 -I INPUT -s 127.0.0.0/8 -j ACCEPT 保存退出后运行命令 servic 阅读全文
posted @ 2020-10-31 10:13 study_php_java_C++ 阅读(485) 评论(0) 推荐(0) 编辑
摘要: centos7+mysql5.5+php5.6+nginx mysql php nginx都安装完成,然后启动了,网站也运行, 但是php文件中使用mysqli_connect时一直超时,有时也报错, (HY000/2002): No such file or directory 以为扩展没开,但是 阅读全文
posted @ 2020-10-22 15:29 study_php_java_C++ 阅读(310) 评论(0) 推荐(0) 编辑
摘要: vim /etc/sysconfig/iptables 可以把你当前的iptables规则放到/etc/sysconfig/iptables中,系统重启iptables时自动执行 1、查看 iptables -nvL --line-number -L 查看当前表的所有规则,默认查看的是filter表 阅读全文
posted @ 2020-10-19 15:22 study_php_java_C++ 阅读(3591) 评论(0) 推荐(1) 编辑
摘要: 之前的域名类似: www.a.com test.a.com edu.a.com ... 文件config/app.php中 'domain_bind' => [ 'test' => 'test', 'edu' => 'edu', '*' => 'index', ], 配置正常 但是第二个项目的域名类 阅读全文
posted @ 2020-09-13 16:04 study_php_java_C++ 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: @media screen and (orientation: portrait) { html{ width : 100vmin; height : 100vmax; } body{ width : 100vmin; height : 100vmax; } #gyroContain{ width 阅读全文
posted @ 2020-09-09 17:12 study_php_java_C++ 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 先在配置文件 app/config/config.yml中配置 schema_filter: /^(?!(tablename))/ 即可,或者在出现问题表都加上一个id 然后再使用命令 php app/console doctrine:mapping:import LipinerAppapiBund 阅读全文
posted @ 2020-09-02 00:15 study_php_java_C++ 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 因为有要在微信公众号的自定义菜单中添加图标的需求,所以去网上搜了一下,发现其实很简单,下面为效果图: 第一种 打开:Emoji表情代码大全 如上图所示,红框圈中的即为微信可用图标,微信公众号直接复制表情所对应的Wechat列代码即可。 第二种 第一步 打开:Emoji表情代码大全 第二步 如上图所示 阅读全文
posted @ 2020-08-31 16:41 study_php_java_C++ 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: (PHP 4, PHP 5, PHP 7) rawurlencode — 按照 RFC 3986 对 URL 进行编码 返回字符串,此字符串中除了 -_. 之外的所有非字母数字字符都将被替换成百分号(%)后跟两位十六进制数。这是在 » RFC 3986 中描述的编码,是为了保护原义字符以免其被解释为 阅读全文
posted @ 2020-08-27 18:56 study_php_java_C++ 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 请求变量 // 全部变量 $request->query->all(); // 指定变量 $request->query->get('abc'); 请求方式 $request->getMethod(); 阅读全文
posted @ 2020-08-24 18:29 study_php_java_C++ 阅读(214) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 41 下一页