PHP/MySQL Freelance
mobile: +39 3489215204
2 simple class for sitemap:
http://www.smartango.com/files/sitemap.txt
simple use:
$root = $_SERVER['DOCUMENT_ROOT']; $sm = new SiteMap($root,'sitemap-1.xml'); $sm->start(); $http = "http://www.example.com"; $sm->addUrl($http."/file.html"); $sm->end();
...SiteMapIdx similar
I tried both SAX and DOM, for parsing an XML file, difference in time performance is huge, from 4 hours (DOM) to 9 seconds (SAX).
Different interface bring to different complexity of code, but all depends from the point of view