true, 'roots' => array( array( 'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED) 'path' => $_SERVER["DOCUMENT_ROOT"].'/files/uploads', // path to files (REQUIRED) // 'URL' => dirname($_SERVER['PHP_SELF']) . '/../files/', // URL to files (REQUIRED) 'URL' => '/files/uploads/', // URL to files (REQUIRED) 'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL) ) ) ); // run elFinder @session_start(); if(!isset($_SESSION['admin'])) die('boo boo'); $connector = new elFinderConnector(new elFinder($opts)); $connector->run();