sql.safe_mode = Off in php.ini required for the function to use exec
since ls is called with 'human-readable' former function function __formatSize is obsolete/removed
- PHP Version 5.3 or greater (5.6 recommended)
- GD Image Library
- ZipArchive PHP Extention (optional)
- Unzip the provided files
- Modify the configuration options as needed at the top of the index.php file.
- Upload the index.php file to your web-accessible directory
- You're done! Browse to the directory to see the script in action!
Credits for ls call: http://www.devkb.org/php/113-get-file-size-in-php-for-files-larger-than-2-gb
Original source: https://www.evoluted.net/thinktank/web-development/php-directory-listing-script