hello dp members, is anyone aware how to write to an xml file using php. I have dozen sites with 1-5K pages, and would like to be able to run mysql queries on a php page that would populate the xml sitemap file. Anybody know of a way to do this or where to find examples of the code? Thanks for any information Regards Vlad
thanks for the reply, but I am not looking for an application to write the code in, I am looking for an actual snippet of code, that I am assuming would be something similar to: sql = ...get the data of all the pages ... while (sql) { writeto sitemap.xml ("<title>$pagetitle</title> ..... the rest of sitemap content ... ") } again, if anyone could help I would really appreciate it!
Go to : http://code.google.com/sm_thirdparty.html Find Programs/Code Snippets: See which ones can work for you. That should work, right?
Thank you for the link, but it is not quiet what I am looking for that one is a crawler, and I would like to find out how to be able to write to an XML file with php manually. This crawler thing did not seem to work. Best regards vlad
you can use this one http://www.softswot.com/sitemap/sitemapxml.php Code (markup): i hope will be good.