I am using DOMDocument for creating and parsing xml files but when I use it in agavi framework it shows me this error ! ) Warning: DOMDocument::save(mci_sitemap.xml) [domdocument.save]: failed to open stream: Permission denied in /home/sample6/tps/app/modules/Mci/models/PrcModel.class.php on line 531and It doesn't let me to create my xml file