Parse error: syntax error, unexpected '(', expecting ',' or ';' in

后端 未结 2 1384
慢半拍i
慢半拍i 2020-11-29 10:04

I am recieveing the following parse error:

Parse error: syntax error, unexpected \'(\', expecting \',\' or \';\' in H:\\Programs\\USBWebserver v8.

2条回答
  •  一向
    一向 (楼主)
    2020-11-29 10:37

    You can't do this:

    private $image_dimensions = getimagesize($temp_dir);
    

    Functions, variables, and anything else not static can't be called to set class variables.

提交回复
热议问题