SecureFileHub is a comprehensive, single-file PHP web application that functions as a secure online file manager with integrated MySQL database management capabilities, fully compatible with Windows Server environments.
- ποΈ Single File Deployment - Just upload
filemanager.phpand you're ready! - π¨ Monaco Editor Integration - Professional code editing with VS Code features
- ποΈ Database Management - Full MySQL administration capabilities
- π‘οΈ Enterprise Security - CSRF protection, session management, path sanitization
- π± Responsive Design - Works on desktop, tablet, and mobile devices
- π Universal Compatibility - Windows Server, Linux, Apache, Nginx, IIS
- Download
filemanager.phpfrom the assets below - Upload to your web server directory
- Access via browser:
http://yourserver/filemanager.php - Login with default credentials:
admin/filemanager123
git clone https://github.com/jerickalmeda/SecureFileHub.git
cd SecureFileHub
# Copy filemanager.php to your web server# Download or clone to your web root
# Access: http://localhost/SecureFileHub/filemanager.phpChange the default credentials immediately after installation!
Edit these lines in filemanager.php:
define('FM_USERNAME', 'your_username');
define('FM_PASSWORD', 'your_secure_password');- Secure Authentication - Session-based login with timeout
- File Operations - Upload, download, create, edit, rename, delete
- Code Editor - Monaco Editor with syntax highlighting for 15+ languages
- Tree Navigation - Sidebar directory structure
- File Previews - Text files, images, and code files
- Bulk Operations - Multiple file selection and actions
- MySQL Integration - Connect and manage multiple databases
- Query Executor - Execute SQL with formatted results
- Table Browser - Browse structures and data
- Export Features - CSV and JSON export capabilities
- Query History - Track and reuse recent queries
- Database Tree - Navigate databases and tables
- CSRF Protection - All forms protected with tokens
- Path Sanitization - Directory traversal prevention
- Session Management - Secure timeouts and validation
- Input Validation - All user inputs sanitized
- File Type Restrictions - Safe file editing only
- Database Security - PDO with prepared statements
- PHP 7.4+ (Recommended: PHP 8.0+)
- Web Server (Apache, Nginx, or IIS)
- MySQL/MariaDB (Optional - for database features)
- Modern Browser with JavaScript enabled
- Development Teams - Quick file access and database management
- Web Hosting - Client file management portals
- System Administration - Server file management
- Database Administration - MySQL management interface
- Home Servers - NAS and media server management
- Development Environment - Local project management
- Learning Projects - PHP and MySQL education
- Backup Management - File organization and access
// Strong password example
define('FM_PASSWORD', 'MyStr0ng!P@ssw0rd#2024');
// Custom root directory
define('FM_ROOT_PATH', '/var/www/secure_files');
// Extended session timeout
define('FM_SESSION_TIMEOUT', 7200); // 2 hours// Production database config
define('DB_HOST', 'mysql.example.com');
define('DB_USERNAME', 'secure_user');
define('DB_PASSWORD', 'SecureDBPassword123!');
define('DB_NAME', 'production_db');# Apache .htaccess example
<Files "filemanager.php">
Require ip 192.168.1.0/24
</Files>| Feature | Status | Details |
|---|---|---|
| File Size | β Single File | ~75KB PHP file |
| Dependencies | β Zero Dependencies | Pure PHP + CDN resources |
| PHP Version | β 7.4+ | Tested up to PHP 8.2 |
| Databases | β MySQL/MariaDB | PDO connection |
| File Types | β 15+ Languages | PHP, JS, HTML, CSS, Python, etc. |
| Mobile Support | β Responsive | Tailwind CSS framework |
| Security | β Enterprise Grade | CSRF, Sessions, Validation |
- Complete file management system
- Integrated database administration
- Monaco Editor code editing
- Comprehensive security implementation
- Professional documentation
- Issue templates and contributing guidelines
- Security policy and best practices
- CSRF token protection on all forms
- Session timeout management
- Path sanitization and validation
- SQL injection prevention with PDO
- File type restrictions for safety
- Responsive mobile-friendly design
- Intuitive tree navigation
- Professional code editor interface
- Real-time query results
- Export functionality
- π README: Complete installation and usage guide
- π€ Contributing: Development and contribution guidelines
- π Security: Security policy and best practices
- π Issues: Bug reports and feature requests
- π¬ Discussions: Community discussions
Use our Bug Report Template
Use our Feature Request Template
Check out our Contributing Guidelines
Email: jerickalmeda@gmail.com (Private disclosure)
Special thanks to:
- Monaco Editor Team - For the excellent code editor
- Tailwind CSS - For the responsive design framework
- PHP Community - For continuous language improvements
- Early Testers - For feedback and suggestions
This project is licensed under the MIT License - see the LICENSE file for details.
Free to use, modify, and distribute!
If you find SecureFileHub useful, please β star the repository and share it with others!
Happy file managing! ποΈ
π Download Now β’ π Documentation β’ π Report Issues β’ π¬ Discussions
Made with β€οΈ by Jerick Almeda