Arrange Files By....
Posted: Sat Oct 19, 2002 10:28 am
I got this simple script that loops thru a folder that includes the files in the folder:
In the folder the files are arranged by name. But when the script includes the files, it looks like there included by the date. The oldest on top and so on. Is there any way to arrange the files another way? After name would be great.<?php
$dirname = "produkter";
$dh = opendir( $dirname );
while( $file = readdir( $dh ) )
{
if(is_file("$dirname/$file"))
include("$dirname/$file");
}
?>