<?php
include("SYSTEM_common_config.php");
$dosya_adi = 'S_cache/video_gallery.xml'; // Oluşturulacak Dosya Adı
$xml_output = '<?xml version="1.0" encoding="UTF-8"?>';
$xml_output .= '<gallery>';
$sql = mysql_query("SELECT * FROM video ORDER BY id DESC", $baglanti) or die("Sorgu hatasi olustu !");
$row_sql = mysql_fetch_assoc($sql);
do
{
$baslik=htmlspecialchars_decode($row_sql['title']);
$xml_output .= '<item>';
$xml_output .= '<image>'.$row_sql['image_big'].'</image>';
$xml_output .= '<title><![CDATA['.$baslik.']]></title>';
$xml_output .= '<link>video.php?id='.$row_sql['id'].'</link>';
$xml_output .= '</item>';
}
while($row_sql = mysql_fetch_assoc($sql));
$xml_output .= '</gallery>';
$yaz=fopen($dosya_adi, "w"); //en başta belirlediğimiz isimde bir dosya yaratıyoruz.
fwrite($yaz,$xml_output); //veritabanından gelen bilgileri açtığımız dosyaya yazdırıyoruz.
fclose($yaz); //yazma işlemini kapatıyoruz.
?>Bunu dene olması lazım.