Skip to content

Instantly share code, notes, and snippets.

View therealabaaskills's full-sized avatar

Abaas Mohamed therealabaaskills

  • Sweden
View GitHub Profile
@projectxcappe
projectxcappe / fromfolder.php
Created September 15, 2011 23:22
Display Images From A Folder with PHP
//Display Images From A Folder with PHP
<?php
$files = glob("images/*.*");
for ($i=1; $i<count($files); $i++)
{
$num = $files[$i];
echo '<img src="'.$num.'" alt="random image">'."&nbsp;&nbsp;";
}
?>