Generate a sitemap script

Posted on 2009-05-05
Medium Priority
Last Modified: 2012-05-06
Hi all,

I know there are online website which provide sitemap generators but I need to be able the generate this automatically everyday.

I am looking for some script free or not that will generate an xml and a html sitemap and save it to the root of my site.

Anyone know of a script or have some code on how to do this please?


Question by:ST3VO
LVL 14

Accepted Solution

agriesser earned 2000 total points
ID: 24302604
There are plenty free sitemap generators available out there, just to mention three of them here:

PHP Sitemap NG (supports Google Syntax, XML output, etc.):

Another PHP Google compatiable sitemap generator:

A self-built sitemap generator:


Author Closing Comment

ID: 31577921

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article discusses how to implement server side field validation and display customized error messages to the client.
I recently worked on a Wordpress site that utilized the popular ContactForm7 (https://contactform7.com/) plug-in that only sends an email and does not save data. The client wanted the data saved to a custom CRM database. This is my solution.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question