
php
卧似昭昂
蹉跎了岁月,啥都干过,现在做产品总监,仍热爱技术。
展开
-
php中return,require,include加括号和不加括号的区别
php中return,require,include加括号和不加括号的区别2010年6月30日小旅发表评论阅读评论在整理代码规范的时候看到这么一句,return返回值尽量不要加括号,这个是什么原因呢。查阅官方手册,在http://cn2.php.net/manual/en/function.return.php 中发现这么一句:Note: You s转载 2014-08-14 15:27:18 · 5800 阅读 · 1 评论 -
大概CentOS7 安装LAMP的步骤
转自:http://www.jb51.net/os/188488.html准备篇:CentOS 7.0系统安装配置图解教程 http://www.jb51.net/os/188487.html一、配置防火墙,开启80端口、3306端口CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。1、关闭firewall:转载 2015-07-25 10:18:11 · 630 阅读 · 0 评论 -
AJAX POST 后跳转页面Form submission canceled because the form is not connected的问题解决
参考了这篇文章:https://segmentfault.com/q/1010000000473230 后报错误:Getting Error “Form submission canceled because the form is not connected” 然后在:http://stackoverflow.com/questions/42053775/getting-error-fo原创 2017-04-07 22:15:31 · 1871 阅读 · 0 评论 -
thinkphp使用JWT-PHP时找不到类解决方法
TP版本3.2.2JWT-PHP下载下来后放到thinkphp/library/vendor目录里,在应用里,controller里引用JWT,但是一直报错找不到Firebase/JWT/JWT 类。在调用之前,加:vendor('Firebase.JWT.JWT');搞定了。原创 2017-04-04 09:18:41 · 8792 阅读 · 0 评论