No, but this one does:
PHP Code:
<?php
$doc = "gallery.xml";
///////////
function sortMod($file1, $file2){
$file1 = filectime($file1);
$file2 = filectime($file2);
if($file1 == $file2)
return 0;
return $file1 < $file2 ? -1:1;
}
$xml = '<?xml version="1.0"?><images>';
$list = glob('./*.jpg');
usort($list, 'sortMod');
foreach($list as $file){
$pic = @getimagesize($file);
$xml .= '<pic><image>/images/galleries/'.substr($file, 2).'</image><width>'.$pic[0].'</width><height>'.$pic[1].'</height></pic>';
}
$xml .= "</images>";
file_put_contents($doc, $xml);
echo $xml;
Bookmarks