"; $root_element ="homepage"; $xml .= "<$root_element>"; error_reporting(0); require '../include/asset.php'; require '../include/Conn.php'; require '../include/config.php'; $query="SELECT vedio_files.film, vedio_files.ID, vedio_files.picture, vedio_files.smalltitle, vedio_files.mCat, vedio_files.title, vedio_files.sData, vedio_files.cdate, vcategories.Name FROM vedio_files INNER JOIN `vcategories` ON vedio_files.mCat = vcategories.ID ORDER BY ID DESC LIMIT 25" ; $result=mysql_query($query) or die(mysql_error()); while($row=mysql_fetch_assoc($result)){ $name=$row['smalltitle']; $title=$row['smalltitle']; $t=text_summarise($row['sData'],5) ; $v_url=url_create("id",$t,$row['ID'],$title); //$image="https://images6.alarab.com".create_thumb($row['film'])."146-100/" . $row['picture']; $image="https://images.alarab.com/cdn-cgi/image/fit=cover,width=155,height=107,quality=85".create_thumb($row['film']) . $row['picture']; $image="https://images.alarab.com".create_thumb($row['film'])."146-100/" . $row['picture']; $xml .=" "; } $xml .= ""; header('Content-type: application/xml'); echo $xml; mysql_close($conn); $fp = fopen($cachefile, 'w'); // save the contents of output buffer to the file fwrite($fp, ob_get_contents()); // close the file fclose($fp); // Send the output to the browser ob_end_flush(); ?>