I'm renaming my site. I didn't think it was necessary to, so I didn't go through and name everything with $variables. I also have a forum, which links everything with http://myOLDdomain.com/... and I need it to be http://myNEWdomain.com/... . Everywhere.
Is there a relatively simple way to write a PHP script so that I can go to a directory, open EVERY SINGLE FILE, and replace EVERY SINGLE INSTANCE of one string with another?
It might be slow and it might hog my bandwidth/server load, but I'm OK with that. It's a one-time run, so efficiency doesn't matter, and neither does clean code, really.
I'll also need to update my database, but that's not relevant, so I'm just asking for this part here. It would be very helpful if someone could help me write this with at least a segment of code here, because I'm extremely new to PHP still.
NOTE: I'm sorry, but unfortunately my host has disabled the glob() function. I don't know if chmod() works, but I suppose I'll need to CHMOD everything to have write permissions. I can do that in FTP though, so no big deal if that doesn't work.
THanks in advance for your help!
`lupus6x9