Auto Google Site Map Generator

Discussion in 'PHP' started by Mbpotin, Apr 21, 2011.

  1. #1
    All my site pages located at MYSQL database I want to create a script that exstracting all the data needed for Google site map. And writing it in sitemap.xml

    Please advice, thank you.
     
    Mbpotin, Apr 21, 2011 IP
  2. Mbpotin

    Mbpotin Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Someone knows?
     
    Mbpotin, Apr 23, 2011 IP
  3. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #3
    how it is? that sitemap is stored in the mysql - sitemaps are always stored in the root or any accessible location - so that search bots could crawl them - what are you actually using when you say "sitemaps are in mysql"
     
    infogle, Apr 23, 2011 IP
  4. Mbpotin

    Mbpotin Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I meant all my pages information such as page url, title, etc... located in a mysql table and can be extract to xml
     
    Mbpotin, Apr 23, 2011 IP
  5. ap2010

    ap2010 Guest

    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can find an extensive list of sitemap generators here. I'd rather write my own because most of the above mentioned sitemap generators are "crawlers" that crawl your website to generate sitemaps. If your site structure is not suitable for crawlers, neither google bot nor these sitemap generators will be able to crawl the inaccessible pages of your website.
     
    ap2010, Apr 25, 2011 IP
  6. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #6
    If you have all your data in SQL tables, you will probably need to write a script yourself to extract it.

    However, you can also use automate sitemap generator to crawl your website, but obviously that is slower than reading directly from SQL tables
     
    websitetools, Apr 25, 2011 IP