- PHP7.0创建类时候创建构建函数不能使用类的名字要使用__construct( )
public function __construct(){}
- Thinkphp5.0取消了使用where(“id=’%d’”,$id)的书写方法使用新的书写方式
where("id",[$id])
centos从7开始默认用的是firewalld
centos从7开始默认用的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是iptables的服务是没安装的。所以你只要停止firewalld服务即可:
sudo systemctl stop firewalld.service && sudo systemctl disable firewalld.service如果你要改用iptables的话,需要安装iptables服务:
sudo yum install iptables-services
sudo systemctl enable iptables && sudo systemctl enable ip6tables
sudo systemctl start iptables && sudo systemctl start ip6tables
本文介绍了PHP7.0中构建函数的正确用法,即使用__construct()而不是类名;ThinkPHP5.0中where条件的新写法;以及CentOS7默认启用firewalld而非iptables的情况,并提供了停用firewalld及启用iptables的方法。
645

被折叠的 条评论
为什么被折叠?



