Thomas (boggyb) wrote,

  • Mood:
  • Music:

What to have at the end of a long driving lesson (and as an aside a simple PHP file browser)

What to have at the end of a long driving lesson (write-up to follow):

As an aside, because getting photos off of the 3DS is such a kerfuffle (exit game, switch off 3DS, remove memory card and stick in card reader, find .JPG, find corresponding .MPO, persuade Semagic to use the .MPO) I bashed out a noddy little file browser/uploader to stick on the NAS. The Internet is full of all-singing, all-dancing PHP file managers but seems to have a lack of simple little ones that just give a file list and an upload box. All in all, it took me under an hour using nothing more than notepad to write 80-odd lines of PHP that can display a file list, browse and create subdirectories, and upload files.

Edit: fixed unclosed <LABEL> tag and added HTML 5 doctype.

I can easily see others finding it useful, so here's the script. There's no configuration at all - just plonk it in a PHP file in whatever folder you want to use as the base and enjoy. There's also absolutely no protection against people doing Bad Stuff and so it's only suitable for internal use (like on a home NAS). As far as licensing goes, consider it licensed under 3-clause BSD (as being one of the more sane copyleft licenses).

It's been quite some time since I just sat down and bashed out a little program like that for myself. I hadn't realised quite how much I'd missed that sort of quick coding to make things just that little bit more convenient to use.
Tags: 3d photo, driving, driving lessons, nas adventures

  • Arduino thermometer

    What with the glorious sunny weather, I wondered how hot my flat actually gets. It's certainly felt far too warm recently. Now, the sensible way to…

  • Submanifolds of a Hilbert Space

    If you do software development then you've probably had the misfortune of working with Git as a source control system. Now, those of you who use Git…

  • More cross-compiling adventures

    Today's discovery is working out just how to configure Eclipse so that it actually finds the correct headers for a C++-based project I was poking at.…

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.