ممكن تنسخ الملف كود الملف لي هنا
			
		 
	 
 تفضل أخي الكريم 
	كود PHP:
	
<?
# Create Google Sitemap for 4images
# Created by Mai Minh (minh@maingo.com http://www.vna2z.com)
# Date: 28/11/2006
# You can send ping to Google with this request: http://www.google.com/webmasters/sitemaps/ping?sitemap=URL_TO_YOUR_SITEMAP
#---------------------------------
require("config.php");
# 4images top page (with trailing slash)
$gallery_url = 'http://photos.gatemaroc.com/';
$link=mysql_connect("$db_host","$db_user","$db_password");
mysql_select_db("$db_name") or die ("Cannot connect database!");
# Priotity
$prio_cat = 0.8;
# Frequency
$freq_cat = 'daily';
# Print XML header
xml_head();
# Print URLs
$categories = mysql_query('SELECT cat_id FROM ' . $table_prefix . 'categories');
while ($category = mysql_fetch_array($categories))
{
    $catid = $category['cat_id'];
    $cat_url = $gallery_url.'cat'.$catid.'.htm';
    print_xml($cat_url,$prio_cat,'',$freq_cat);
}    
# Print XML footer
xml_foot();
function xml_head() {
    $freq = 'daily';
    $priority = '1.0';
    $mod = date("Y-m-d")."T".date("H:i:s")."+00:00";
    echo "<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd\">
<url>
  <loc>http://photos.gatemaroc.com</loc>
  <lastmod>$mod</lastmod>
  <changefreq>$freq</changefreq>
  <priority>$priority</priority>
</url>";
}
#-----------------------------------------------
# xml_foot
#-----------------------------------------------
function xml_foot() {
    echo "
</urlset>";
}
#-----------------------------------------------
# print_xml
#-----------------------------------------------
function print_xml($url,$priority,$lastmod,$changefreq) {
    echo "
<url>
  <loc>$url</loc>
  <priority>$priority</priority>
  <lastmod>$lastmod</lastmod>
  <changefreq>$changefreq</changefreq>
</url>";
}
?>