PHP Weby is a Free Directory script that can create a SEO friendly directory for you. Here’s a script that generates an XML sitemap for PHP Weby Directory.


Download from


1. Download the file

2. Extract from the zip file and rename to sitemap.php

3. add into the mysql_connect the location of the database normally local host, the user and password – line 16

4. add the main URL of the directory to $site – line 17 *** make sure you leave a trailing slash e.g. and not ***

$con = mysql_connect(“localhost”,”database_name”,”password”);
$site = ‘’;

5. Upload file to the server


Version 1 – 8/12/09

Future Ideas

Correct lastmod dates for all URL’s
Integrate into backend.

2 thoughts on “PHP Weby Directory XML Sitemap Generator

  1. Pingback: Google XML Sitemap Generator for PHP Weby Free Directory | AUKSEO - Blog from a Search Engine Optimiser based the UK

Leave a Reply