I just uploaded my project to my server in var/www made using slim framework the project has a folder structure like:
include
  -Functions.php
controller
  -weeklysummary.php(Script I want to run)
vendor
  -autoload.php
When I try to call a function in the Functions.php script On my local machine the project worked fine but on the server it keeps telling me `
 Warning: require(../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/project/include/Functions.php on line 11
 Fatal error: require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/innov8alert/include/Functions.php on line 11`
This is how Functions.php Looks like
class Functions {
private $conn;
function __construct() {
    require_once 'Connect.php';
    require '../vendor/autoload.php';
    require '../mailer/class.phpmailer.php';
    $db = new Connect();
    $this->conn = $db->connect();
}
function __destruct() {
}
 
    