phpFe - PHP File explorer

phpFe is a lightweight directory and file explorer/lister with some nifty features such as sorting, RegEx enchanced searching and friendly URLs. Listing can be configured to just display a single folder and its contents or to act as a complete server explorer. The output is clean and by relying completely on CSS for styling, very customizable. phpFe can be extended by an optional admin addon which enables an administrator panel where authenticated admins can perform tasks such as renaming (single/batch), chmod, directory/file deletion and uploading along with cut/copy and pasting objects on the server.

Demonstration - Standard settings with friendly URLs and navigation turned on.
phpFe is created and maintained by Victor Hallberg at phpFe.vigge.net.
HotScripts.com listing

phpFe features

phpFe_admin features

Requirements

License / Limitations

You are allowed to distribute phpFe/phpFe_admin freely, but it's advised to download the scripts from phpFe.vigge.net as new versions can be released at any time. Modifications of the scripts included in the archives are allowed, as long as the multiline comment on the first rows of each script is kept and a visible phpFe note exists on all pages using them.

Download

Installation

  1. Use the links above to download the latest version of phpFe, along with phpFe_admin if desired.
  2. Extract the zipped archive(s) into a temporary directory. This should result in a folder called phpFe being created.
  3. Open phpFe.php inside the newly created directory.
  4. Scroll down to CONFIGURATION and change the value of BASEPATH under PATH SETTINGS to your desired root folder for the script.
  5. If your server allows URL rewriting using mod_rewrite you may wish to specify settings to clean up the part of the URL which points to phpFe. $queryURL specifies what URL phpFe will use to query itself and should be set to either be pointing to itself (if URL rewriting is disabled) or to the base rewriting URL.
  6. Friendly URLs can be toggled by $useFURL, and requires the server to either have the rewrite engine or the server variable PATH_INFO enabled.
  7. The .htaccess Apache configuration file included in phpFe shows an example of using mod_rewrite to rewrite the URL of phpFe queries to /f/[query]. It also includes the line AcceptPathInfo On, which (if uncommented) can be used to enable the server variable PATH_INFO on servers where it is turned off by standard.
  8. To disable directory browsing and link to the contents directly (for example if you only want a directory lister), uncomment the line #define (NONAV, 1);.
  9. Various other settings such as enabling search, excluding objects from being listed and which columns to show can be found under MISCELLANEOUS SETTINGS.
  10. Close phpFe.php and open css/phpFe.css if you are planning on using the included CSS stylesheets. Locate all occurrences of url("/phpFe/ and replace /phpFe/ with the path where the phpFe files are located (relative to the server root with a leading slash) to make sure that the stylesheet is pointing to the images correctly. Do the same thing with occurences in phpFe_admin.css if you intend to use it.
  11. phpFe should now be configurated and ready to be uploaded to the server.
  12. Installation instructions for phpFe_admin follows below:
  13. Open phpFe.php, locate $admin and set it to true.
  14. Open phpFe_admin.php and enter your desired administrator password inside the md5 ('[password]') function call on line 26.
  15. phpFe_admin should now be ready to be uploaded, but you might wish to check out the other settings (such as specifying the upload size limit and respecifying search and exclusion settings when logged in as an admin) before uploading everything. Make sure to upload phpFe_admin to the same folder as phpFe, and don't forget css/phpFe_admin.css along with phpFe_admin.js.
  16. Visit [URL_to_phpFe]?login=[password] to authenticate as an administrator and show the phpFe_admin panel.
  17. If you wish to log out, just visit [URL_to_phpFe]?logout and you will return to phpFe.

phpFe changelog

phpFe_admin changelog