I have a rather complicated search and replace I need to do among several dozen files and over a hundred occurrences. My site is written in PHP and throughout the old code, you will find things like
die("Operation Aborted due to.....");
For my new design skins for the site, I need to get rid of these statements and transform them into something like
echo "Operation Aborted due to.....";$h->endpage();exit;
So it really takes the first part: die(" and replaces it with Echo "
And then, on the same line only, replace: ); with ;$h->endpage();exit;
Is there anyway this can be done or am I really going to have to manually go through all pages to make these changes? Thanks.
UCCCC
---------- Post updated at 07:23 PM ---------- Previous update was at 07:11 PM ----------
So I figured out an solution...
I am simply going to do a search/replace on the Die function and rename the function to something new. I can then write my own function to do what I originally needed.
Now I find myself unable to discover where on this forum I can delete my post to save everyone time. Well thanks for reading.