<- Older :: Newer ->

Posts Tagged "php"

05 Aug 2007

Editing files from a browser window

Tags: ,

Sometimes you want to edit a remote file, but are just too lazy to fire up a FTP client. So, can you do it in a browser window? Of course you can. With a little help of server side scripting. I am using a PHP script to accomplish just that.

See the demo
View source
.txt file, which the script edits

If you view the source you’ll see it’s really simple. PHP offers commands to read files from disk and to save them. All that’s left is to provide a simple interface for editing. Mine is very basic, but I’m sure you can do better.

No Comments

11 Jun 2007

Cheat sheets

Tags: , , ,

Marc Andreessen posted a nice cheat sheets collection. These are short programing / scripting manuals, allowing quick reference to commonly used code. The list consists of php, html, css, javascript and google cheat sheets. These can be of great help at times. Do check it out.

Here’s a quick list of the ones I liked. All fit on one A4 page and are in PDF form. So you can print them out and stick em on your wall or your desk :)

No Comments