Php: parse error expected T
This question already has an answer here:
This line is incorrect:
$config = p_ini_file('../../../Config.ini');
You're assigning to a variable, but it's in a class so it needs to be defined as a property of that class. This means prepending the property with one of the keywords public
, protected
or private
.
More information on properties here:
http://php.net/manual/en/language.oop5.properties.php
Additionally you cannot call a function there.
链接地址: http://www.djcxy.com/p/58072.html上一篇: PHP与mysqli的连接错误
下一篇: Php:解析错误预计T