https://github.com/antlafarge/php-erqplorer
php-erqplorer
https://github.com/antlafarge/php-erqplorer
Last synced: 3 months ago
JSON representation
php-erqplorer
- Host: GitHub
- URL: https://github.com/antlafarge/php-erqplorer
- Owner: antlafarge
- Created: 2021-04-30T17:44:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-09T16:35:32.000Z (4 months ago)
- Last Synced: 2025-01-09T17:33:01.094Z (4 months ago)
- Language: PHP
- Size: 168 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# PHP-ErqPlorer
This is a files explorer PHP script created for [free.fr](https://www.free.fr) perso pages (ftpperso.free.fr).
## Configuration
Open `.erqplorer.php` and modify these config variables :
- `hideDotStartingDirs` : Hide directories starting with a dot (`.git`)
- `hideDotStartingFiles` : Hide files starting with a dot (`.gitignore`)
- `exactFileSize` : Don't round file size (`1 KB` => `1337 B`)
- `dateFormat` : Change the default date format (`Y/m/d H:i:s`)## Installation
Put these 2 files in the FTP root directory :
- `.erqplorer.php`
- `.htaccess`## Installation in a sub-directory
If you don't want to install the script in the root directory of your website, put the script in the sub-directory you want.
You will serve the sub-directories and the files of this directory.
To do that, you have to modify the `.htaccess` to target the new path to the `.erqplorer.php` script file :ErrorDocument 403 /path/to/.erqplorer.php
ErrorDocument 404 /path/to/.erqplorer.php