I am working on one PHP project, and I am having some files for that. Some of the files have anextension as
file_name.php~
What does it mean and how do those files get created?
I am working on one PHP project, and I am having some files for that. Some of the files have anextension as
file_name.php~
What does it mean and how do those files get created?
Those are backup files created by the text editor you are using (or one of the people working on the same project).
~, you must not rely on that! Remove them from web-accessible locations immediately.
– Michael
Dec 21 '12 at 14:21
When you are working with files, editing them, the editor(almost all of them) creates a copy of it with names like you provided and does the editing on that file. Upon saving the file the changes are saved to the original files.
These files are generally hidden from the user. You are seeing it probably because the option to show hidden files is turned on.
When you quit from your text editor, that temporary file gets deleted.
Finally, You don't need to worry about the creation of those files :)
NOTE: JUST MAKE SURE YOU DON'T UPLOAD THEM TO THE SERVER WHICH CAN BE A SECURITY ISSUE AS DISCUSSED IN THE COMMENTS :)