|
Web-based plain text editor
|
Sep 8, 2006
|
For quite a while now, I've been looking around for a web-based plain text editor for use on my site. WordPress has its own plain text editing capabilities, but they're often slow and clumsy. Finally, I found what I was looking for: The Sandbox. It's a very simple, 3-file PHP script (actually just one PHP file, a CSS file, and a JS file) that displays the files within a directory and allows you to edit them in a plain text editor. It also has other simple file functions such as rename, CHMOD, copy, and delete. The plain text editor has an autosave feature, which is borderline amazing. The javascript file is just for some visual fade effects, so it can be tossed out if desired (with a few small edits to the PHP file so that things continue to work). The style sheet can obviously be integrated into the PHP file, so in the end, you could have an extremely powerful, amazingly small browser-based plain text file editor.
But with power comes responsibility. The best way (in my uneducated, untested opinion) to protect yourself against unauthorized attacks (people editing all your files) is with some sort of password protection script. I tried using the one I found a while ago, but it didn't seem to work on my newer version of PHP. So I found a different and better one. It's simple yet effective. Cha-ching! #technology
|
|