A search and replace method for PHP files