Skip to content

Professional Web-based File Management System with Universal Compatibility, file-manager, php, web-app, file-system, universal-compatibility

License

Notifications You must be signed in to change notification settings

securityxd/filemanager-2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Test Image 7

File Manager 2025 - Single File Version

πŸ“ Professional Web-based File Management System

Quick Start

1️⃣ Download Single File

# Direct download
curl -O https://raw.githubusercontent.com/yourusername/file-manager-2025/main/file-manager.php

# Or download via browser
# Visit: https://github.com/yourusername/file-manager-2025
# Click: file-manager.php β†’ Download

2️⃣ Upload to Server

# Upload to your web server
# Place file-manager.php in desired directory
# Set permissions: chmod 644 file-manager.php

3️⃣ Access via Browser

http://yourdomain.com/file-manager.php

✨ Features

πŸ—‚οΈ File Operations

  • Upload Files - Drag & drop or traditional upload
  • Create Files - Quick file creation
  • Create Folders - Directory management
  • Rename Files/Folders - Easy renaming with extension preservation
  • Delete Files/Folders - Safe deletion with confirmation
  • Change Permissions - CHMOD support for Unix/Linux servers

πŸ“¦ Archive Operations

  • Create ZIP Archives - Batch file compression
  • Extract ZIP Files - Optional extraction with custom paths
  • Multiple Formats - ZIP, tar.gz, and simple archive fallbacks

🌐 Remote Operations

  • Download from URL - Remote file downloading
  • Multiple Methods - cURL, file_get_contents with fallbacks

🧭 Navigation

  • Breadcrumb Navigation - Clickable path navigation
  • Directory Links - Quick folder access
  • Security Checks - Path traversal protection

🎨 User Interface

  • Modern Design - Professional gradient UI
  • Responsive Layout - Mobile-friendly design
  • Glassmorphism Effects - Modern visual effects
  • Hover Animations - Smooth micro-interactions
  • Modal Dialogs - User-friendly confirmations

πŸ”§ Universal Compatibility

Server Requirements

  • PHP 5.4+ (with compatibility layers)
  • File Uploads enabled
  • Basic file functions (file_put_contents, mkdir, etc.)

Optional Extensions

  • ZIP Extension - For ZIP operations (fallbacks available)
  • cURL - For URL downloads (fallbacks available)
  • JSON Support - For modern features

Fallback Systems

  • Compression: ZIP β†’ tar.gz β†’ Simple copy
  • Downloads: cURL β†’ file_get_contents β†’ Error message
  • Paths: Windows ↔ Unix/Linux compatibility

🌍 Server Compatibility

βœ… Fully Compatible (100%)

  • cPanel Hosting (95%+)
  • Plesk Hosting (95%+)
  • VPS/Dedicated (100%)
  • Cloud Platforms (100%)

⚠️ Partially Compatible (90%)

  • Shared Hosting (90%)
  • Free Hosting (70%)

πŸ›‘οΈ Security Features

  • Path Traversal Protection - Prevents directory access attacks
  • File Extension Validation - Safe file handling
  • XSS Protection - Cross-site scripting prevention
  • CSRF Protection - Form submission security
  • Permission Checks - File access validation
  • Security Headers - Modern security headers

πŸ“± Browser Compatibility

  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+
  • Mobile Browsers - iOS Safari, Chrome Mobile

🎯 Use Cases

πŸ“š Educational

  • Learning PHP - File system operations
  • Web Development - Modern UI practices
  • Security Examples - Safe file handling

🏒 Business

  • File Management - Internal file sharing
  • Remote Access - Web-based file access
  • Quick Operations - Fast file manipulations

πŸ‘¨β€πŸ’» Development

  • Testing - File upload testing
  • Debugging - File system debugging
  • Prototyping - Rapid file operations

πŸ”§ Customization

🎨 Theme Customization

/* Add custom CSS at the top of the file */
.header { background: linear-gradient(135deg, #your-color, #your-color); }
.btn-create { background: linear-gradient(135deg, #your-color, #your-color); }

βš™οΈ Configuration

// Change base directory (line ~20)
$base_dir = '/path/to/your/directory';

// Modify file size limits (add at top)
ini_set('upload_max_filesize', '50M');
ini_set('post_max_size', '50M');

πŸ› Troubleshooting

Common Issues

ZIP Extension Not Available

# Enable ZIP extension
php.ini β†’ extension=zip

# Restart server
sudo service apache2 restart

File Uploads Disabled

# Enable file uploads
php.ini β†’ file_uploads = On

Permission Denied

# Set proper permissions
chmod 755 /path/to/directory
chown www-data:www-data /path/to/directory

Blank Page

# Check PHP errors
php -l file-manager.php

# Enable error display temporarily
ini_set('display_errors', 1);
error_reporting(E_ALL);

πŸ“Š File Structure

file-manager.php          # Complete application (single file)
β”œβ”€β”€ PHP Backend (~400 lines)
β”œβ”€β”€ HTML Structure (~200 lines)
β”œβ”€β”€ CSS Styles (~150 lines)
β”œβ”€β”€ JavaScript (~100 lines)
└── Documentation (inline)

🌟 Advantages of Single File

βœ… Benefits

  • Zero Dependencies - No external files needed
  • Easy Deployment - Just upload one file
  • Portable - Works anywhere PHP runs
  • Self-Contained - All code in one place
  • Fast Setup - No configuration required
  • Secure - No external dependencies to exploit

🎯 Perfect For

  • Quick Deployments - Rapid file management setup
  • Educational Purposes - Learn from complete code
  • Testing Environments - Quick file operations
  • Emergency Access - Backup file management
  • Portable Tools - Carry on USB/Cloud

πŸ“„ License

MIT License - Free to use, modify, and distribute

🀝 Contributing

  1. Fork the repository
  2. Edit the single file
  3. Test thoroughly
  4. Submit pull request

πŸ“ž Support

πŸ› Bug Reports

  • Open an issue on GitHub
  • Include server information
  • Provide error logs
  • Describe steps to reproduce

πŸ’‘ Feature Requests

  • Open an issue with "Feature Request" label
  • Describe the use case
  • Suggest implementation approach

πŸ“ File Manager 2025 - Single File Solution
Universal Compatibility β€’ Modern Design β€’ Zero Dependencies
One File β€’ Complete Solution β€’ Ready to Deploy

πŸš€ GitHub Repository

Repository Structure

file-manager-2025/
β”œβ”€β”€ file-manager.php          # Main single-file application
β”œβ”€β”€ README_SINGLE.md          # This documentation
β”œβ”€β”€ LICENSE                   # MIT License
└── CHANGELOG.md              # Version history

Quick GitHub Setup

# Clone repository
git clone https://github.com/yourusername/file-manager-2025.git

# Use immediately
cd file-manager-2025
# Upload file-manager.php to your server

Direct Download Link

https://raw.githubusercontent.com/yourusername/file-manager-2025/main/file-manager.php

🎯 Ready to use in 30 seconds!

About

Professional Web-based File Management System with Universal Compatibility, file-manager, php, web-app, file-system, universal-compatibility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages