As in the title, I have thousands of files (UTF-8) which for some reason have inherited two carriage returns after the end of the PHP code. This is causing "header already sent" errors in my program.
I have tried finding/replacing with Notepad++ but I don't know how to define a carriage space. Is there any way I can use a program to go through each file and replace:
"?>
"
with:
"?>"
Thanks in advance!
Step 1:
Select your "Find" text like this:
Step 2: Press CTRL + H and enter your replacement text:
Step 3: Press Replace All button:
As you can see, it does work. You can use the "Find in Files" to batch this operation also against many files, without having to do one by one manually.