Creating web page template based on directory of image.jpg's
Posted on 2003-03-28
Can someone create a script that looks a every image file in a directory and creates a web page template from it, named after the suffix of the jpg?
I know this sounds weird, and maybe Perl is not the best place to put this question, but I always seem to get some kind of a solution here.
In summary. I would put the pictures in a folder on the unix web server. And run the program from the cgi bin.
In the folder there could be these images:
The perl script would take those file names and create:
Within the HTML that is created would be the usual header and footer info. Nothing special there. But centered in the middle of the body text would be the name of the image. I.E. foobar.jpg
So each image would have its own webpage named after it and be featured in the center of that page. The resulting web pages could be stored in the same directory or a different directory.
I think that covers it. :)