I am using the following script for listing the files in a particular directory as a hyperlink list. The files names which i have mentioned must not be displayed, How do i change the code for this?
<?php
$directory = '';
foreach (glob($directory . "*.php") as $file) {
$parts = pathinfo($file);
$name = preg_replace("/-/", " ", $parts['filename']);
echo "<li><a href=\"{$file}\">{$name}</a></li>";
}
?>