Your script works well.
I get that $_FILE_LIST is an array with many files.
When I try at my server.
So maybe you just need to change the part AFTER the first foreach.
This I used:
<?php
$source_folder = 'mydir';
$FILES = glob("$source_folder/*.png");
// here I can get a list of files
foreach($FILES as $key => $file) {
$FILE_LIST[$key]['name'] = basename(substr( $file, ( strrpos( $file, "\\" ) +1 ) ), ".png");
$FILE_LIST[$key]['date'] = date("M j, Y", filemtime( $file ) );
$FILE_LIST[$key]['datestamp'] = date("Ymd", filemtime( $file ) );
}
echo '<pre>';
print_r($FILE_LIST); // show what is in $FILE_LIST
?>
A little bit of my $_FILE_LIST array
Array
(
[0] => Array
(
[name] => 12months.php
[date] => Jan 27, 2010
[datestamp] => 20100127
)
[1] => Array
(
[name] => 30days.php
[date] => Feb 8, 2010
[datestamp] => 20100208
)
[2] => Array
(
[name] => abs.php
[date] => Jan 15, 2010
[datestamp] => 20100115
)
[3] => Array
(
[name] => add_query_links.php
[date] => Feb 5, 2010
[datestamp] => 20100205
)
===================================