is there a way to check by using a command into terminal,recursively into folders, if a PHP file is corrupted? Thank you very much.
In my case, for corruption i mean bad encoding that could create problems with PHP interpreting.
Problem was caused by the Byte Order Mark in my files. Used this answer to fix everything Elegant way to search for UTF-8 files with BOM?