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 \
Unfortunately, automated solutions may not work. My recommendation:
1) Use grep to find all short tags:
grep -rn "[^p]" *
2) Go through each file and line and fix manually
I understand that this might not be a viable solution if you have a huge project, but for me it worked well.