Error writing to XML file
Posted: Sun Mar 30, 2008 6:34 pm
I'm having a problem with this PHP script I developed to be part of an ajax application (well, actually an asynchronous Flash app) that's getting deployed on multiple servers. PHP is basically taking the raw post data and rewriting a current XML file with that data. However, on some of the servers I'm deploying this on, I'm getting errors returned saying PHP can't write to the XML file. I've downloaded the XML file, reset the permissions, and re-uploaded it and it's still giving me errors. I re-download it and check the permissions and they're set to user only again! I have no idea why the permissions aren't sticking to the file, my only guess is that it may be a Windows server. How do I deal with this? I'd really like to not have to deal with file permissions at all, since the person deploying these PHP scripts isn't super savvy with terminal or file systems in general, is there a way for PHP to handle all of this? Please help!!!