1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[PHP] Dynamic Sitemap in XML

Discussion in 'General Programming Chat' started by HillTopMayhem, Feb 20, 2014.

  1. HillTopMayhem

    HillTopMayhem Registered Member

    Joined:
    Jan 28, 2014
    Messages:
    86
    Likes Received:
    26
    I did a bit of googling and tried a few tutorials to no avail.

    How would I create a sitemap (that is dynamic) in php or another language?

    Just want to index all the pages in an easy fashion.
     
  2. solventnine

    solventnine Junior Member

    Joined:
    Dec 4, 2009
    Messages:
    113
    Likes Received:
    16
    Use one of the tools freely available and update it whenever you update your site. If your site changes more often than that and you're using one of the many available blog platforms, get a plugin.

    OR...

    Write out the "steps" of what you have to do to build a sitemap, then search for a tutorial on each step. There are about a million results (I'm sure not all of them apply) for "dynamic xml sitemap," including some GitHub sources.