Hello,
I've had the same problem!
The solution should be the following:
Delete all instructions in the header of your php-file and upload it again.
The error shouldn't showed to you again.
I would explain to you, why this error is showed:
php-language can't read scripts, if there are instructions written in the header!
I hope, I can help you with this reply!
Goodbye!