Simple Fix Of Php Script
Hi there,
Thanks for looking at my project. This is urgent — I need the problem fixed within the hour, if at all possible.
I have a simple PHP script which reads a text flatfile database. It looks for certain words or phrases in field #5 of each record, and if it finds one, it replaces it with a different word or phrase.
The for the replacements, the script has its own simple database, a simple text file called “replace_db.txt”. Each line has the “match” phrase, a tab, and then the “replacement” phrase.
The script saves the resulting file as “database_es_corrected.txt”, then copies that file to a different location on our server.
As you can see, it’s very simple, and has been working well.
However, this morning I accidentally put a line on the replace_db.txt file that asked it to replace EVERYTHING (every character) with a phrase (“muy limpio”). This resulted in lines like this:
muy limpioAutommuy limpio√


