Skip to content

Instantly share code, notes, and snippets.

@abznak
Created November 16, 2012 03:49
Show Gist options
  • Save abznak/4083861 to your computer and use it in GitHub Desktop.
Save abznak/4083861 to your computer and use it in GitHub Desktop.
very quick image gallery script
<html><body>
<?php
$msg = file_get_contents('readme.txt');
echo "<pre>$msg\n\n</pre>";
foreach (glob("*") as $img) {
if (preg_match("/jpg|png|gif/i", $img)) {
echo "<img src=\"$img\"><br>";
}
}
?>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment