Thread: wordpress help
View Single Post
Old 10-09-2007, 12:37 PM  
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
THIS IS DANGEROUS CODE - run it at your own risk. Test it on a test install of word press first to be sure it's right. I have not tested this!

This should do it. If there are any other uses of out.php it will replace them as well, so if you can, add more identifying info, like your domain name, etc - as much as you can add into the replacement strings the better. It has to exactly match what it will find in the posts, of course.

In this code, the first string 'out.php' will get replaced with 'exit.php' in all posts.

Do I need to remind you to back up your database first?

If you don't know how to run SQL commands or you don't have access to the database, look for a wordpress plugin that will do search and replace.

Code:
UPDATE wp_posts 
SET post_content=( 
REPLACE (post_content,
'out.php',
'exit.php'));
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote