ich benutze das: http://www.redaxo.de/176-Aktiondetails.html?action_id=14 um eine xml-datei von einer reihe von bilder zu erstellen.
ein teil des codes:
- Code: Alles auswählen
///////// CODE
$fp = fopen($xml_file, "w"); // open our xml file
// xml file content
$xmlContent = $xml_declaration. "\n" ; // header
$xmlContent .= "<root>" . "\n" ; // opening root tag
// loop for every image from our rex_medialist array
foreach ( ( explode (",", $REX_ACTION["MEDIALIST"][1] ) ) as $image_entry )
{
$xmlContent .= "<photo><thumb>files/" ;
$xmlContent .= $image_entry;
$xmlContent .= "</thumb></photo>" . "\n" ;
}
$xmlContent .= "</root>" . "\n" ; // closing root tag
fwrite($fp, $xmlContent); // write the file
fclose($fp); // and close it
echo "The file ".$xml_filename.".xml is saved."; // user notification
?>
wie kann ich denn zum dateinamen noch zusätzlich den bildtitel und die bildbeschreibung auslesen?
danke markus

