I do not want to reinvent the wheel. I need a PHP script that will search and replace server files recursively. This need not be something you've written. I would be happy with a link. Can anyone help with this type of script? There are a number of php files on my server, each of which have one line of code that I would like to replace with a different line of code. However, within the code there are some characters which need to be escaped in the php code in order to replace them, so some php code I have found online cannot work with this particular piece of code for that reason. This can be code or a program/utility that would run on an apache linux/ php server. Any help would be appreciated. Thank you.