Can't open Stream to Composer- Please help!


#1

I’ve uploaded compser locally to my subdomain.mydomain folder and installed the package I want to use.

my php file is this: <?php require ‘vendor/autoload.php’;

?>

and I am getting this error: Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in /home/(webhostusername)/(subdomain.mydomain)/index.php on line 3

Fatal error: require(): Failed opening required ‘vendor/autoload.php’ (include_path=’.:/usr/local/lib/php:/usr/local/php5/lib/pear’) in /home/(webhostusername)/(subdomain.mydomain.com)/index.php on line 3

I changed my php file to this: <?php

require DIR . ‘/vendor/autoload.php’;

?>

and get the error Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in /home/(webhostusername)/(subdomain.mydomain)/vendor/autoload.php/index.php on line 3

Any composer users out there, what am I doing wrong? Please help. Thank you!!