douyou2368 2013-11-12 19:12
浏览 36
已采纳

如何解决ASCII = 92错误,是否可以在php 5.2服务器上运行laravel 4项目?

I am getting error like this ,

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/dolovers/public_html/bootstrap/autoload.php on line 46

and

Parse error: syntax error, unexpected T_STRING in /home/dolovers/public_html/bootstrap/autoload.php on line 46

My current version of web server php is 5.2 is that the reason for that ?

my second question is, Is is possible to run Laravel 4 projects on php 5.2 servers ? If not then what will be the good server to buy for laravel 4. And during its selection what should I take care of ?

  • 写回答

1条回答 默认 最新

  • dtd14883 2013-11-12 19:16
    关注

    The \ character is the namespace separator, and since Laravel 4 uses namespaces and PHP 5.2 does not support them, it triggers a syntax error and you cannot use Laravel 4 on that version of PHP.

    By the way, support for PHP 5.2 has been long since dropped, you should consider upgrading to the latest version of the 5.5.x branch.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探