I have a script that retrieves the names of photos in a photo directory. I want to sort them by the names, but my sorting isn't working. Everything seems to work except the order is wrong. My code is below. Any help is appreciated.
$path = "../arrangements";
if(isset($_POST['file']) && is_array($_POST['file']))
{
foreach($_POST['file'] as $file)
{
unlink($path . "/" . $file) or die("Failed to <strong class='highlight'>delete</strong> file");
}
}
$path = "../arrangements";
$dir_handle = @opendir($path) or die("Unabl