Skip to content

Instantly share code, notes, and snippets.

View Lycantant's full-sized avatar

Ari Setiawan Lycantant

  • Indonesia
  • 10:46 (UTC +08:00)
View GitHub Profile
@Lycantant
Lycantant / fromfolder.php
Created April 18, 2020 02:33 — forked from projectxcappe/fromfolder.php
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;";
}
?>