How To create Dynamic Xml Sitemap in php?
I have one website like www.example.com and have dynamic id's like www.example.com/id?1 and www.example.com/id?2 etc. more id's are created every hours. I need to create sitemap.xml file automatically save in server path and update my latest id's to Google search engine. How to do this in PHP? Give me any clue on this

plz any one give me sample code...iam newer to xml sitemap
How To create Dynamic Xml Sitemap in php?
===

I have one website like www.example.com and have dynamic id's like www.example.com/id?1 and www.example.com/id?2 etc. more id's are created every hours. I need to create sitemap.xml file automatically save in server path and update my latest id's to Google search engine. How to do this in PHP? Give me any clue on this

plz any one give me sample code...iam newer to xml sitemap