ich hab selbst mal die php umgeschrieben, damit gehts auch super mit php 5
PHP-Code:
<?php
echo '<?xml version="1.0" encoding="UTF-8"?>';
echo '<pics>';
$dir=opendir('images');
while ($file = readdir ($dir)) {
$bild = $file;
if ($file != "." && $file != ".." && $file != "Thumbs.db" && $file != ".DS_Store") {
$info = getimagesize('images/'.$file);
echo '<pic picname="'.$bild.'" width="'.$info[0].'" height="'.$info[1].'">'.$bild.'</pic>';
}
}
closedir($dir);
echo '</pics>';
?>