TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   PHP Sitemap (http://www.talkphp.com/general/5824-php-sitemap.html)

buildakicker 03-23-2011 08:33 PM

PHP Sitemap
 
Hello, I have a static website that I would like to create a small php script on that shows a site map of a few directories. I would also like to have it automatically create the XML file that google can use.

Do you know of a script? I have searched the web and found a couple, but they are not exactally this.

I am just looking for some advice on how best to go about this. I am thinking:
  • Search the Root Directory
  • Find the php files
  • compare to a blacklist
  • display their h1, h2 or title as a link to the file
  • create XML file

I have PHP 4.3.x available to me.

Thanks for any advice!

clonepal 05-05-2011 06:57 PM

Hi, here is something better: enarion.net/tools/phpsitemapng/

Free Google Sitemaps generator written in PHP, also generates RSS, txt, and HTML sitemap files.

Hope that helps.

buildakicker 05-05-2011 07:33 PM

Hi, thanks for the reply. I did come across that a while back while searching on this subject.


All times are GMT. The time now is 05:19 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0