in reply to simple image gallery generated by server image directory
in thread simple column/row counter
So, whenever anyone added a new image it automatically showed up. My problem was with the initial picking of a directory. I was manually having to add the categories to the form when someone added a new directory. Your code interfaces into my system with very few changes.opendir( DIR, $dir ) or die( "Error opening: $!" );<br /> my @imagefiles = grep { /\.jpg$|\.gif$|\.png$|\.JPG$|\.bmp$/ } readdir +(DIR);
|
|---|