I am using php to create linsk to all pages of my site, is there a script to covert the url I created into xml format?
If it is your own script, then why not have it generate an XML file instead? I believe there is a PHP XML sitemap generator script out there. Try Google.
There is an online service creating sitemaps (up to 5 websites for free) and pinging google after crawling for immediate submission: http://www.freesitemapgenerator.com Code (markup):
Google won't read the sitemap in a .php form only .xml form. Check out HotScripts.com - there are a ton of Google sitemap generators out there!
Yeah offcourse u can use a PHP page as a google sitemap. Only make sure that the page that u create, is has a XML header. Example: header('Content-Type: application/xml'); echo '<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'; ... your url's ... echo '</urlset>'; Code (markup): Pretty easy. I do it too.
Making an XML sitemap file - $copy_text = '<?xml version="1.0" encoding="UTF-8"?>\n <!--Google Site Map -->\n <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">\n ... your urls ... </urlset>'; $FileName = "sitemap.xml"; $fh = fopen($FileName, 'w+') or die("can't open file"); fwrite($fh, $copy_text); fclose($fh); Code (markup):
Well not strictly true, you can have an asp or php file that dynamically generates your xml sitemap, I have developed numerous dynamically driven sitemap files for blog and ecommerce sites. You just have to make sure that the information is outputted in xml, so for an asp sitemap it may look like the following: <?xml version="1.0" encoding="ISO-8859-1"?> <% Response.Buffer = true Response.ContentType = "text/xml" %> <?xml-stylesheet type="text/xsl" href="web-blog/include/sitemapcss.xsl"?> <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>link</loc> <lastmod><%= year(Date()) & "-" & strCurMonth & "-" & strCurDay %></lastmod> <changefreq>monthly</changefreq> <priority>1</priority> </url> <% Do While Not rsBlog.EOF %> <url> <loc><% Response.Write("link")%></loc> <lastmod><%= year(rsBlog("blog_releaseDate")) & "-" & strBlogMonth & "-" & strBlogDay %></lastmod> <changefreq>monthly</changefreq> <priority>.5</priority> </url> <% rsBlog.MoveNext Loop %> </urlset> Code (markup): Sorry I know that probably wont help you all that much if your after php, but I aint a php programmer.