Skip to content
Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

80 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

simple-file-manager

A lightweight, single-file PHP File Manager, modernized and hardened for PHP 8.x environments.

Originally created by John Campbell, this version has been patched and updated to fix deprecated features, improve security, and ensure compatibility with modern servers (PHP-FPM, nginx, aaPanel, etc.).


✨ Features

  • πŸ“„ Single PHP file – no external assets, no build steps
  • ⚑ AJAX-based interface – fast, responsive, back-button friendly
  • πŸ–±οΈ Drag & Drop uploads (when directory is writable)
  • 🌍 Unicode / UTF-8 filenames support
  • πŸ“± Usable on tablets (iPad compatible UI)
  • πŸ›‘οΈ XSRF protection
  • πŸ” Optional password protection
  • πŸ“‚ Recursive delete with permission checks
  • ⬇️ Secure file download handling
  • 🎨 Minimal, clean UI (Dropbox-style, not Explorer-style)

πŸ†• What’s New in the Updated Version

This fork includes important improvements over the original project:

Backend (PHP)

  • βœ… Full PHP 8.0 / 8.1 / 8.2 compatibility
  • βœ… Fixed deprecated functions and warnings
  • βœ… Hardened path traversal protection
  • βœ… Improved XSRF validation
  • βœ… Safer file upload handling
  • βœ… Fixed mime_content_type() fallback
  • βœ… Fixed recursive delete permission checks
  • βœ… Removed debug output (var_dump)
  • βœ… Proper HTTP headers and JSON responses

Frontend (JavaScript)

  • βœ… Removed deprecated jQuery .live()
  • βœ… Compatible with newer jQuery versions
  • βœ… Fixed invalid HTML markup
  • βœ… Improved event handling

πŸš€ Installation

  1. Copy index.php into a directory on your web server
  2. Make sure PHP is enabled (PHP 8.x recommended)
  3. Open the file in your browser
cp index.php /var/www/html/files/

About

A Simple PHP file manager. The code is a single php file.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages