i have a php file in which i read a folder by this code
$image_file_path = ‘images’;
$d = dir($image_file_path) or die(“Wrong path: $image_file_path”);
while (false !== ($entry = $d->read())) {
if($entry != ‘.’ && $entry != ‘..’ && !is_dir($dir.$entry))
$aqw=$entry.’,’.$aqw;
}
$d->close();
i want to create a xml file now like now
<images>
<image url=”images/01.png” />
<image url=”images/02.png” />
<image url=”images/03.png” />
<image url=”images/04.png” />
<settings>
<!– 5000 equals 5 seconds –>
<!– Delay between slide animation –>
<delay>5000</delay>
<!– animation duration and 1 equals 1 second –>
<animationDuration>.8</animationDuration>
</settings>
</images>
what i do for it or what is the coding for this.