Hello. My code is:

In index.php

define('BASE_PATH', realpath(__DIR__.'/../')); 

In the class Config.php:

 class Config { const ERROR_PATH = BASE_PATH.'/runtime/errors'; } 

In locale everything works. And in the server error:

 Parse error: syntax error, unexpected '.', expecting ',' or ';' in /home/xxx/xxx/Core/Config.php on line 106 

How can I fix this?

  • make sure version pxp 5.6 and higher? - teran
  • php version 5.6. In locale too 5.6 - Cavid KÉ™rimov

0