Unexpected character in input: '\' (ASCII=92) state=1 in a Silex Application

前端 未结 1 711
误落风尘
误落风尘 2021-01-04 08:37

I moved my website from local to a hosting, and something happened to me. I include this config file into my index.php (it\'s the first thing I do):

<         


        
1条回答
  •  既然无缘
    2021-01-04 09:09

    According to the official documentation, Silex requires PHP 5.3 to provide namespace support.
    Try to migrate your server to PHP 5.3 in order to get rid of this error.

    Silex is a PHP microframework for PHP 5.3.

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