Show all images in a folder with PHP Rumi, September 11, 2010 <?php //Your folder $files = glob("icons/*.*"); $colCnt=0; echo '<table border="0" style="width:590px;">'; for ($i=1; $i<count($files); $i++) { $colCnt++; if ($colCnt==1) echo '<tr>'; echo '<td width="25%" style="font-size:8.5px; font-family:arial">'; $num = $files[$i]; echo '<img src="'.$num.'" align="absmiddle" /> '; print substr(substr($num,6,100),0,-4); echo '</td>'; if ($colCnt==4) { echo '</tr>'; $colCnt=0; } } echo '</table>'; ?> Related Scripts
Nagios- Memory Check Plugin January 6, 2013January 6, 2013 Dave the below code as check_mem.sh using nano and chmod it to +x. (file to be saved inside nagios libexec- such as /usr/local/nagios/libexec/check_mem.sh Related Read More
A good Webmail with least complications and have beautiful interface- MailBee July 7, 2008July 7, 2008 I was just tired on working webmail projects with- Horde Neomail Squirrelmail (I did customize quite a long back!) DWMail Uebimiau MDaemon with IIS integration And so many!!!!! Anyway, my eyes were bored in seeing those interfaces on and on, just looked for some new thingy available now a days…… Read More
WordPress Backup Script August 23, 2020 #!/bin/bash # This script creates a compressed backup archive of the given directory and the given MySQL table. More details on implementation here: https://theme.fm # Feel free to use this script wherever you want, however you want. We produce open source, GPLv2 licensed stuff. # Author: Konstantin Kovshenin exclusively for… Read More