";
echo "
";
foreach ($items as $item)
{
echo "- $item
";
}
echo "
";
// Display the files from a directory listing
$path = getcwd();
$items = scandir($path);
$files = array();
foreach ($items as $item)
{
$item_path = $path . DIRECTORY_SEPARATOR . $item;
if (is_file($item_path))
{
$files[] = $item;
}
}
echo "Files in $path
";
echo "";
foreach ($files as $file)
{
echo "- " . $file . "
";
}
echo "
";
?>