I'm having problems using the str_replace command.
I want to use two files. One contains which words to replace, and the other contains which words to replace them with.
My script looks like this:
$file = file_get_contents('example.html');
$originalwords = "originalwords.txt";
$newwords = "newwords.txt";
$result = str_replace($originalwords, $newwords, $file);
For some reason $file isn't being affected by my str_replace command.
Any ideas where I'm going wrong?