문제

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 531

and It doesn't let me to create my xml file

도움이 되었습니까?

해결책

Your web server needs permission to write to the target directory. If you are running Apache, that user is usually named apache. If you are running IIS, the user name varies according to the server name; you can find it in your IIS management console.

You need to think about security before you give write permission to the web server user under the web root. Ideally, you should be writing your xml file outside the web root.

Agavi is not doing anything unusual, here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top