I have a large collection of php files written over the years and I need to properly replace all the short open tags into proper explicit open tags.
change \
I used danorton script on almost 2000 files and it worked like a charm
I put his script into a file named "fixtags.php" and used the following linux 1 liner to solve the problem:
find . -iname "*.php" | xargs php fixtags.php --overwrite
the only problem I had is when it encountered a file that was zero bytes in size.