When you have made a hack in a php script and you want to share it with other users this script is handy to distibute your hack.
What does the script? The script will search through the php-file, replace parts of code with your new code and save it in a new file. The users can edit or download the new file.
The basis of the php-replace-script is finished.
You can download the script here.