unexpected T_VARIABLE, expecting T_FUNCTION

前端 未结 5 1074

I am expecting this to be a basic syntax error I overlooked, but I can\'t figure it out.

In a PHP script, I keep getting the following error.

Parse e         


        
5条回答
  •  旧巷少年郎
    2020-12-15 18:47

    You can not put

    $connection = sqlite_open("[path]/data/users.sqlite", 0666);

    outside the class construction. You have to put that line inside a function or the constructor but you can not place it where you have now.

提交回复
热议问题