I have created a script to edit html pages in PHP, so customers can edit the text on their website themselves. I have only one problem with the script though: the files which are edited need to have a chmod permission of 777. Thus, all the .html files need that permission before my script works. My question is: is it dangerous to set the permission to 777 on files which are accessible by the visitors of a website?
If it is, is there a way to temporarily give a file the new permissions before turning them back to normal?
Thanks in advance,