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");
}
?>
Arrange Files By....
Moderator: General Moderators
Arrange Files By....
I got this simple script that loops thru a folder that includes the files in the folder:
viewtopic.php?t=1241 has a quite similar topic