I have an XML file on my server. In the same directory I have a PHP file which modifies the content of the XML and saves it. In this, the save part doesn't work. In my knowledge the code is alright and the problem is with the file access persmissions.
More details available here: https://stackoverflow.com/questions/3351652/how-to-save-an-xml-file-on-the-web-server-using-php ( There is nothing wrong with the code. I provided it to give more insights. The problem seems to be with the access permissions )
The permissions of the XML file is: rw-r--r-- (644)
My question is, am I doing it right? How do I modify a file in the same directory?