I have the following, what is happening on the output when you go to this page is that all of the directories that are in upper case are listed first then the directories that are lower case are listed. I wish to ignore the case sensitivity and list in alphabetical order no mater what the case.
[php]<?
//Path to folder which contains images
$dirname = “…/MOVIES/*/”;
//Path to folder which contains vob files
$dirname2 = “…/MOVIES/*/VIDEO_TS/”;
//Use glob function to get the files
//Note that we have used " * " inside this function. If you want to get only JPEG or PNG use
//below line and commnent $images variable currently in use
$images = glob($dirname."*.jpg");
//$vobs = glob($dirname2.“VIDEO_TS.IFO”); //this works if i select the file on the pc but not the web
//$vobs = glob($dirname2.“VTS_01_0.IFO”); //this works if i select the file on the pc but not the web on either device
$vobs = glob($dirname2.“VTS_01_1.VOB”); //this line works with samsung
//Display image and get the vob file using foreach loop
foreach( $images as $index => $image ) {
//print the image to browser with anchor tag (Use if you want really )
echo ’ ';
}
?>[/php]