php - Autoload Error: No such file or directory -


i have included autoload.php in header of site

include 'vendor/autoload.php';  

from receiving following errors on site:

warning: require_once(dir/composer/autoload_real.php) [function.require-once]: failed open stream: no such file or directory in /homepages/6/d416629391/htdocs/leftovercheese/vendor/autoload.php on line 5

fatal error: require_once() [function.require]: failed opening required 'dir/composer/autoload_real.php' (include_path='.:/usr/lib/php5') in /homepages/6/d416629391/htdocs/leftovercheese/vendor/autoload.php on line 5

my code is:

// autoload.php generated composer  require_once __dir__ . '/composer' . '/autoload_real.php';  return composerautoloaderinit8be239f5caef32db03f87bb271ed6012::getloader(); 

php version: 5.2.17

any ideas?

you have load vendor/autoload.php, autoload file you:

require_once __dir__ . '/vendor/autoload.php'; 

this assuming file located @ same directory level vendor directory.

otherwise, adjust.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -