How do one check with php if a file is 'genuinely' editable i.e. the file is editable in any file editor. Ex : php, text, html or even .htaccess file. All these file is editable in notepad or any text editor.
I am using php 'is_writable' function. But it is also returning image file as writable file.