PHP code example of jhernandes / php-filemanager
1. Go to this page and download the library: Download jhernandes/php-filemanager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jhernandes / php-filemanager example snippets
manager = new FileManager();
try {
$filemanager->save('file_post_param', './uploads/images', 'new_file_name');
} catch(\Exception $e) {
echo $e->getMessage();
}