true, 'roots' => array( array( 'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED) 'path' => '../../img/gallery/', // path to files (REQUIRED) 'URL' => dirname($_SERVER['PHP_SELF']) . '/../../img/gallery/', // URL to files (REQUIRED) 'accessControl' => 'access', // disable and hide dot starting files (OPTIONAL) 'attributes' => array( array( 'pattern' => '/./', //You can also set permissions for file types by adding, for example, .jpg inside pattern. 'read' => true, 'write' => false, 'locked' => true ) ) ) ) ); // run elFinder $connector = new elFinderConnector(new elFinder($opts)); $connector->run();