azureabstraction > out of the blue

Learning php

PHP is bloody useful to know. I found a short script somewhere that would list the contents of a directory. I modified it a bit, and made it link to every file in a directory. That way, I have a way to upload files to a directory and automatically generate a links page. I also made one that displays images. (Of course, you can't put anything in the directory besides images, or it screws up.) The image gallery generator strips the last four characters from the string to display a title for the picture, but (of course) still links to the actual image in the img tag.

The Magical Gallery Generator

Unfortunately, the sorting is a bit whacky. So, my next step is to learn how to manipulate arrays. I'm going to try blackmail, and if that doesn't work, I'll give them bribes until they give in.

PHP is fun. :)

Leave a Reply