Coder Social home page Coder Social logo

single-file-php-file-manager's Introduction

Single-File-PHP-file-manager

The inspiration for this project was my inability to use an FTP client remotely when working on CS projects that required I save my work to a campus-hosted server. I built a really terrible solution at the time which did some really janky things and was mostly contained in one enormous echo block, but I recently revisited it and rewrote it from the ground up.

The biggest challenge was keeping everything in one file while maintaining a decent feature set and preserving readability. The latter was the real challenge. By and large things are well commented, though, I did have to use section comments which I'm not crazy about. There's some cases where things are shoved into one line, but only when it's self explanatory when the formatting doesn't look terrible.

Features

  • View file list (with FontAwesome icons!)
  • Filter results in file list
  • Copy/delete/rename/preview/change permissions
  • Drag and drop file movement between directories
  • Create new files/folder
  • file uploading
  • AJAX (not more broken refresh/back buttons
  • Simple login/'security'
  • It's all in one PHP file!

Known bugs

  • Dragging and dropping onto action buttons produces an error
  • Top directory dragging/dropping doesn't work

Coming soon

  • Better error handling
  • Clean everything

Credits

This project makes use of Bootstrap, jQuery and FontAwesome, as well as a few functions which were created by users on PHP.net and Stack Overflow--These are credited in the source.

Note:

This has not been extensively tested! I am not liable for lost data! Use at your own risk!

single-file-php-file-manager's People

Contributors

benergize avatar

Forkers

haseebhanif

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.