Hi all, I would love some advice on the best way to do a search and replace script on my web server.
Basically, I want to search for all instances of the <body> tag and replace it with a php include. Normally, on my localhost, I would use a standalone tool to do this then re-upload, but I have hundreds of pages I want to do this across and dont want to download them all, run the tool, then re-upload as I know this is wrong.
Is the best practice for doing this simply to write a php script that loops through the directories I specify or should I be using a shell script