I just had this experience myself.
In my case though, I notice one more thing. File permissions for header.php file was getting change automatically to 200. I kept on changing it to 644 but as soon as I load my website bam! 200 again.
I opened the file and found the exact code as posted by...