如何将laravel文件上传到服务器目录进行测试?

时间:2015-02-03 08:53:12

标签: php laravel

我正在使用laravel framewrok用于一个项目,它在localhost上正常运行但在我将其上传到主机上的目录时出错

警告:要求( DIR /../ bootstrap / autoload.php)[function.require]:无法打开流:/ hermes / bosoraweb187 / b1812 / ipg中没有此类文件或目录第21行的.girdtechnologiescom / test / acekamp1 / public / index.php

致命错误:require()[function.require]:无法打开所需的' DIR /../ bootstrap / autoload.php'(include_path ='。:/ usr / local / lib / php-5.2.17 / lib / php')在第21行的/hermes/bosoraweb187/b1812/ipg.girdtechnologiescom/test/acekamp1/public/index.php

我正在使用ipage主机。

提前感谢...

1 个答案:

答案 0 :(得分:2)

简而言之 - 您必须至少将PHP升级到5.3。原因是 __ DIR __ 是一个神奇的常量,只在PHP 5.3中添加。

Here is the explanation of the problem