If you have a medium to large size website, you can provide a Sitemap so that search engines intelligently index your site's content.
A Sitemap in it's simples form is an XML file containing a list of available URLs on your site. See http://sitemaps.org for more information on Sitemaps.
This script is intended as a starting point for generating a Sitemap for your site - since every website is different you will most likely need to customise it to make it work for you.
In it's present form, this script generates a list of static URLs based on the contents of an array and also a list of product / location / items from a text file. This can be expanded as necessary to suit your requirements.