简体   繁体   中英

How to upload laravel file to sever directory for test?

I am using laravel framewrok for a project it is running fine on localhost but giving errors when I upload it to a directory on host

Warning: require( DIR /../bootstrap/autoload.php) [function.require]: failed to open stream: No such file or directory in /hermes/bosoraweb187/b1812/ipg.girdtechnologiescom/test/acekamp1/public/index.php on line 21

Fatal error: require() [function.require]: Failed opening required ' DIR /../bootstrap/autoload.php' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/bosoraweb187/b1812/ipg.girdtechnologiescom/test/acekamp1/public/index.php on line 21

I am using ipage host.

thanks in advance...

In short - you have to upgrade PHP to 5.3 at least. The reason is because __DIR__ is a magic contstant that is only added in PHP 5.3.

Here is the explanation of the problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM