|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$directory = "assets/images/thumbs/small/"; //get all image files with a .jpg extension. $images = glob("" . $directory . "*.jpg"); $imgs = ''; // create array foreach($images as $image){ $imgs[] = "$image"; } // sort by date if you like //usort($imgs, create_function('$a,$b', 'return filemtime($a) - filemtime($b);')); //sort by name //usort($imgs, create_function('$a,$b', 'return strcmp($b, $a);')); //display images foreach ($imgs as $img) { echo "<figure><img src="$img"></figure> "; } |
Development / Deployment / Hosting / Automation / AI / Digital Kiosk / Digital Signage / Hardware / Mini PC / KPI / Backup
It is 02:40 on a Tuesday. The lights flicker, the fridge compressor stops, and somewhere in the spare room your rack goes dark. Power comes back ninety seconds later. Everything boots except one machine, which sits at a BIOS screen waiting for someone to press F1. You are asleep. At 07:10 you leave for work. […]
