phpFileManager

phpFileManager is a complete filesystem management tool on a single file.
A server administration tool using PHP, meant for rapid file access, and also to verify the server configuration and security. The script can be renamed and deployed on an unique known url, and offers password protection..
All dependencies, like images, js and css files, are included inside the same file, so that the script can run even on offline devices, like a local Raspberry Pi, or ESP32 microcontroller. The size of the script is bellow 1Mb, and i want to make it even smaller. To conclude, this script is also a repository of several hand made functions, organized in sections, meant for learning PHP and explore all PHP capabilities. You can learn, copy and use them on your own projects.
If you like comics, read Fangs, a lovely novel by Sarah Andersen.
Help me deliver phpFileManager 2.0
I want your help, to deliver phpFileManager 2.0
We are currently on version 1.8, almost there!
When the donations reach U$350, I will deliver the new update within 20 days.
I will keep this page updated with the current sum.
Update: 2025/05/06 Donations: U$ 30,00 (Thanks! The first donation on 5 years)
Update: 2025/04/08 Donations: U$ 0,00 (Zero)
Click here to donate using my website checkout !
The payment is transparent, fast and secure.
I am using stripe.com payment gateway.
As alternative, click here to donate using librepay.com
What new features will be added on phpFileManager 2.0 ?
– A new window, called Translations, where you can create/edit your translation, and submit it to me easily.
– Complete php open_basedir bypass, for tree view and file edition, using local system commands, when php system exec functions are available.
– A new window, called PHP Security Check. It will check for php open_basedir bypass, and explain how to solve the issue using php_admin_value[disable_functions], php Suhosin module, or a docker container. It will also allow to scan the server for files that should never be readable/writable thru php (ex: /etc/, /var/, /home/*) and check if any of the local services available, has access thru php with the default service user/pass (ex: mysql, pgsql, ldap, smtp,..).
– Revision of the internal compression class. It seems to do TGZ (tar gzip) and TBZ (tar bzip) when asked for GZIP or BZIP (just compression).
– A new feature, allowing to provide a list of other phpFileManager URLs and passwords, so you can browse/copy/move files and folders to different webservers, using drag n drop, directly on the interface. Allow the view of two phpFileManager from diferent URLs on the same screen. Like Midnight Commander does.
– Options for chown() and chgrp() on permissions window. (only the superuser may change the group of a file arbitrarily; other users may change the group of a file to any group of which that user is a member)
– Add option to edit text/html using some wysiwyg editor, like Ckeditor, FCKEditor or TinyMCE. (the smaller the better)
– Allow bookmarking of folder paths using right click menu on the folder tree, and show them a combobox, on top of the folder tree.
– SSH connection option for terminal window (host/user/pass), to run commands as another user on the local server, or even other hosts.
– PHP secure delete, allow to shred files using DoD 5220.22-M.
– Store all the script config vars on $GLOBALS and remove the “globals” declarations from all functions. (will reduce the script lines, not size.. but that´s good!) Use $_REQUEST, $_COOKIE, $_POST, $_GET on the script, instead of registering all of them as global vars every run. (it´s an old script.. sorry) The script is working as it is, and it would take hours of testing to do this, to ensure that i didn´t break anything.
And then, I am done.
With this update, the project is done, a complete file manager, as I conceived it 20 years ago, as it is meant to be.
And i will change the licence to MIT, so everyone can use it as will, personal or commercially, without restrictions.
Official Releases:
https://sourceforge.net/projects/phpfm
https://github.com/dulldusk/phpfm