I need to write to a file however i am not being able to do so. I can create a file and later write to it however when I try to write to an existing file then I am not allowed to. The thing is everything works in localhost ...its when I keep it in the server that the problem starts coming. I believe this has got to do something with the permission so I changed the permission to read,write, execute for all (user/group/other) but then it didnt help. Does anyone have any idea on this ?