Is there a way to remove a portion of code (always the same lines of code)
from mutliple files at once using php?
So it loops through different pages on the ftp, opens it, looks for the code, replaces it with a blank, save and close.
Or is there a better method to do this?
Thanks in advance phpdev'ers
Removing code from files in batch using php
Moderator: General Moderators
Re: Removing code from files in batch using php
There would be a way to do this, but before I help you with the code would it not be easier to use grep?
http://www.gnu.org/software/grep/
http://www.gnu.org/software/grep/
Re: Removing code from files in batch using php
Try this google search : "php search and replace recursive"