banksy89 / XML-Sitemap

This is a quick XML sitemap generator I developed. It relies on providing one page at the moment, and grabbing all the links. I have made use of the DOM controller provided by PHP for this, something I have recently discovered. That is why I have included this up here!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brief explanation

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...


To use!

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:

  1. Put create.php and download.php in a directory where you want to create the XML file
  2. Open a browser
  3. 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.
  4. Press enter in the URL bar ( of course )
  5. If you have kept the 'force download' in the create.php file you will get a download prompt
  6. Open the download, and there it is!

  7. 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

About

This is a quick XML sitemap generator I developed. It relies on providing one page at the moment, and grabbing all the links. I have made use of the DOM controller provided by PHP for this, something I have recently discovered. That is why I have included this up here!


Languages

Language:PHP 100.0%