This isn't a massively fancy XML sitemap generator - it literally builds an XML of all the links that are on the provided page. So if you have a nice big 'SEO Footer' then you will get a full site-map...
Put into a working directory of some kind, perhaps on a server - it's completely up to you.
Now follow these simple easy to use steps:
- Put create.php and download.php in a directory where you want to create the XML file
- Open a browser
- Direct yourself to the directory and use create.php?url=yourwebsite.com - (replace yourwebiste.com with the one you want! ) With the query string, it's not neccessary to include www.
- Press enter in the URL bar ( of course )
- If you have kept the 'force download' in the create.php file you will get a download prompt
- Open the download, and there it is!
I'm happy with this as it's the first time I have used the DOM class provided by PHP. It's pretty nifty not having to use Javascript to search the DOM