PHP unexpected '['

后端 未结 1 939
囚心锁ツ
囚心锁ツ 2020-12-12 08:06

I think it\'s a server configuration error and not a php syntax error. running Apache/2.2.20 (Ubuntu) and PHP Version 5.3.10-1ubuntu3.7

Error :

<
相关标签:
1条回答
  • 2020-12-12 08:47

    Check your PHP version first. The short hand form for the array declaration [] was only introduced in PHP's version of 5.4 (if am not mistaken). The previous versions only supported the () delimiters.

    So, I suggest you try changing that line to:

    $config->safe_ips = array(
         '127.0.0.1',
        '192.168.1.###'
        );
    

    or better yet, update to PHP > 5.4Yeah..

    0 讨论(0)
提交回复
热议问题