Code Snippets Php

click on the files to view them


$directory = opendir('./images');
while ($files = readdir($directory))
{
$file_array[] = $files;
}
foreach ($file_array as $files)
{
echo "";
}
?>
file viewer
";
if($files == ".." || $files == ".")
{
continue;
}
echo "$files
";
echo "