Scarby Posted April 15, 2008 Share Posted April 15, 2008 hi i am currently getting the error: Warning: DOMDocument::save(projects.xml) [function.DOMDocument-save]: failed to open stream: Permission denied in /home/scarby/public_html/XML/process.php on line 63 however the snippet of code has not changed in some time and has now randomly broken. Any input would be much appreciated Scarby Link to comment https://forums.phpfreaks.com/topic/101218-functiondomdocument-save-failed-to-open-stream-permission-denied/ Share on other sites More sharing options...
benphp Posted April 15, 2008 Share Posted April 15, 2008 The operative phrase in the error is "Permission denied". I'd check your web server permissions for that folder/file. Link to comment https://forums.phpfreaks.com/topic/101218-functiondomdocument-save-failed-to-open-stream-permission-denied/#findComment-517727 Share on other sites More sharing options...
craygo Posted April 15, 2008 Share Posted April 15, 2008 check the permissions on the XML folder and make sure it is at least chmod 775. Ray Link to comment https://forums.phpfreaks.com/topic/101218-functiondomdocument-save-failed-to-open-stream-permission-denied/#findComment-517728 Share on other sites More sharing options...
Scarby Posted April 15, 2008 Author Share Posted April 15, 2008 thanks though strangely enough 775 didn't work had to set 777 in order to be able to write to the file, is this potentially insecure? Link to comment https://forums.phpfreaks.com/topic/101218-functiondomdocument-save-failed-to-open-stream-permission-denied/#findComment-517983 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.