php的lareval框架配置出错

WBOY
Release: 2016-06-23 13:24:04
Original
1594 people have browsed it

前两天,在学习php的 lareval 框架时,从官网上下载完lareval的安装包后,按照网上的配置教程一点一点的配置完后,当点击public 文件运行时就出现一个让我很头痛的问题,我自己外加两个大神找了老半天才发现那个非常坑的错误原因:

 错误类型:

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in/var/www/Learn/laravel/public/index.php on line 50
Copy after login

错误原因:

这个是php版本问题,laravel5.1的php版本要求是PHP >= 5.5.9
Copy after login

 对于,上面的那个再不能低级的错误,我只能说在现阶段的学习过程中自己太过追求效率,而从来不去认真的去理解,从而学会融会贯通 。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!