File size doubled when saving

Had a pretty standard php file for some background processes on a server, I opened it, made no changes and saved and closed. The file size went from 6k to 10k and now when the website is run it is overloaded with random characters all over the place, within them is segments of code that I recognize but I do not understand how or why this happened. Any ideas/fixes?

Screen grab of the page showing random characters perhaps?

The actual page you’re saving perhaps?

Sponsor our Newsletter | Privacy Policy | Terms of Service