HomePHP Page 4 - Using PHP to Generate a Customized Google XML Sitemap
Implementation Guide - PHP
Submitting XML sitemaps to Google Webmaster Tools is an important webmaster activity. Google recommends using it to help it find new content in your website which otherwise cannot be crawled by Googlebot. This is particularly helpful if you have a fairly large website. In this article, you'll learn how to generate such a sitemap with PHP.
See the screen shot below for a clear illustration.
Second, you need to use entity escape codes for the characters discussed on this page. You need to apply escape codes before pasting those entire URL list into the form.
Third, you need to simply copy and paste the result on the web application output to a blank text file and save it as sitemap.xml
Finally, using your FTP to upload it to the root directory, you can then submit that sitemap to Google webmaster tools.