<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:georss="http://www.georss.org/georss" 	> <channel><title>Comments on: mySQL Database Search &amp; Replace With Serialized PHP</title> <atom:link href="http://www.davesgonemental.com/mysql-database-search-replace-with-serialized-php/feed/" rel="self" type="application/rss+xml" /><link>http://www.davesgonemental.com/mysql-database-search-replace-with-serialized-php/</link> <description>Work, travel and irreverence</description> <lastBuildDate>Tue, 09 Mar 2010 10:27:56 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Andy</title><link>http://www.davesgonemental.com/mysql-database-search-replace-with-serialized-php/comment-page-1/#comment-30462</link> <dc:creator>Andy</dc:creator> <pubDate>Thu, 29 Oct 2009 04:27:20 +0000</pubDate> <guid
isPermaLink="false">http://www.davesgonemental.com/?p=782#comment-30462</guid> <description>thanks for the script dave.this one saved a lot of of messing about when i had to move a wordpress site to a different url/path to a new location.but I had to modify it a little to allow for some wierd escape slashes for the quoted strings. but this might have been a once off with some particular wordpress modules we used.before $unserialized:
$escapedstuff = 0;
if(preg_match(&#039;/:\\\&quot;/&#039;,$data_to_fix) &amp;&amp; preg_match(&#039;/\\\&quot;;/&#039;,$data_to_fix))
{
$data_to_fix = preg_replace(&#039;/:\\\&quot;/&#039;,&#039;:&quot;&#039;,$data_to_fix);
$data_to_fix = preg_replace(&#039;/\\\&quot;;/&#039;,&#039;&quot;;&#039;,$data_to_fix);
$escapedstuff = 1;
}and after $edited_data:
if($escapedstuff == 1)
{
$edited_data = preg_replace(&#039;/:\&quot;/&#039;,&#039;:\&quot;&#039;,$edited_data);
$edited_data = preg_replace(&#039;/\&quot;;/&#039;,&#039;\&quot;;&#039;,$edited_data);
}</description> <content:encoded><![CDATA[<p>thanks for the script dave.</p><p>this one saved a lot of of messing about when i had to move a wordpress site to a different url/path to a new location.</p><p>but I had to modify it a little to allow for some wierd escape slashes for the quoted strings. but this might have been a once off with some particular wordpress modules we used.</p><p>before $unserialized:<br
/> $escapedstuff = 0;<br
/> if(preg_match(‘/:\\\”/’,$data_to_fix) &amp;&amp; preg_match(‘/\\\”;/’,$data_to_fix))<br
/> {<br
/> $data_to_fix = preg_replace(‘/:\\\”/’,’:“‘,$data_to_fix);<br
/> $data_to_fix = preg_replace(‘/\\\”;/’,’”;’,$data_to_fix);<br
/> $escapedstuff = 1;<br
/> }</p><p>and after $edited_data:<br
/> if($escapedstuff == 1)<br
/> {<br
/> $edited_data = preg_replace(‘/:\”/’,’:\“‘,$edited_data);<br
/> $edited_data = preg_replace(‘/\”;/’,’\”;’,$edited_data);<br
/> }</p> ]]></content:encoded> </item> <item><title>By: Oliver O Nielsen</title><link>http://www.davesgonemental.com/mysql-database-search-replace-with-serialized-php/comment-page-1/#comment-30029</link> <dc:creator>Oliver O Nielsen</dc:creator> <pubDate>Mon, 19 Oct 2009 20:29:42 +0000</pubDate> <guid
isPermaLink="false">http://www.davesgonemental.com/?p=782#comment-30029</guid> <description>Hi DaveThank you for making this script. It just made migrating a BuddyPress local install to an online server a whole lot easier. Thanks again. Have a great day.Oliver</description> <content:encoded><![CDATA[<p>Hi Dave</p><p>Thank you for making this script. It just made migrating a BuddyPress local install to an online server a whole lot easier. Thanks again. Have a great day.</p><p>Oliver</p> ]]></content:encoded> </item> <item><title>By: Worth writing an article on how to clone WP sites properly? - WordPress Tavern Forum</title><link>http://www.davesgonemental.com/mysql-database-search-replace-with-serialized-php/comment-page-1/#comment-27418</link> <dc:creator>Worth writing an article on how to clone WP sites properly? - WordPress Tavern Forum</dc:creator> <pubDate>Wed, 02 Sep 2009 11:24:23 +0000</pubDate> <guid
isPermaLink="false">http://www.davesgonemental.com/?p=782#comment-27418</guid> <description>[...] options from plugins and so on, is a surprisingly tricky job to get right.  I wrote tools such as a mySQL search and replace utility for serialised PHP to help with this, but I figure that it could well be worth writing a step by step guide on how to [...]</description> <content:encoded><![CDATA[<p>[…] options from plugins and so on, is a surprisingly tricky job to get right.  I wrote tools such as a mySQL search and replace utility for serialised PHP to help with this, but I figure that it could well be worth writing a step by step guide on how to […]</p> ]]></content:encoded> </item> <item><title>By: Using Shortcodes - WordPress Tavern Forum</title><link>http://www.davesgonemental.com/mysql-database-search-replace-with-serialized-php/comment-page-1/#comment-23943</link> <dc:creator>Using Shortcodes - WordPress Tavern Forum</dc:creator> <pubDate>Wed, 08 Jul 2009 11:04:46 +0000</pubDate> <guid
isPermaLink="false">http://www.davesgonemental.com/?p=782#comment-23943</guid> <description>[...] to do a regex based shortcode search and replace (or remove!) on a DB using the utility I wrote: http://www.davesgonemental.com/mysql...erialized-php/    Interconnect IT WordPress Developers &#124; Spectacula GPL Themes Club &#124; [...]</description> <content:encoded><![CDATA[<p>[…] to do a regex based shortcode search and replace (or remove!) on a DB using the utility I wrote: <a
href="http://www.davesgonemental.com/mysql...erialized-php/" rel="nofollow">http://www.davesgonemental.com/mysql…erialized-php/</a> Interconnect IT WordPress Developers | Spectacula GPL Themes Club | […]</p> ]]></content:encoded> </item> <item><title>By: Telegraph Relaunches Blogs on WordPress &#124; Interconnect IT - wordpress consultancy, web development and design in Liverpool</title><link>http://www.davesgonemental.com/mysql-database-search-replace-with-serialized-php/comment-page-1/#comment-23595</link> <dc:creator>Telegraph Relaunches Blogs on WordPress &#124; Interconnect IT - wordpress consultancy, web development and design in Liverpool</dc:creator> <pubDate>Tue, 30 Jun 2009 08:12:16 +0000</pubDate> <guid
isPermaLink="false">http://www.davesgonemental.com/?p=782#comment-23595</guid> <description>[...] beta on a subdomain prior to running a search and replace script (not sure if it was one of our own developer&#8217;s PHP database search and replace scripts that we use for migrations) and then point the domains right over to it.  That [...]</description> <content:encoded><![CDATA[<p>[…] beta on a subdomain prior to running a search and replace script (not sure if it was one of our own developer’s PHP database search and replace scripts that we use for migrations) and then point the domains right over to it.  That […]</p> ]]></content:encoded> </item> <item><title>By: Safe Database Search &#38; Replace Tool - WordPress Tavern Forum</title><link>http://www.davesgonemental.com/mysql-database-search-replace-with-serialized-php/comment-page-1/#comment-22038</link> <dc:creator>Safe Database Search &#38; Replace Tool - WordPress Tavern Forum</dc:creator> <pubDate>Mon, 25 May 2009 20:24:16 +0000</pubDate> <guid
isPermaLink="false">http://www.davesgonemental.com/?p=782#comment-22038</guid> <description>[...] supplied without guarantee - more info about this safe(r) database search and replace tool over at: http://www.davesgonemental.com/mysql...erialized-php/    Spectacula &#124; [...]</description> <content:encoded><![CDATA[<p>[…] supplied without guarantee — more info about this safe® database search and replace tool over at: <a
href="http://www.davesgonemental.com/mysql...erialized-php/" rel="nofollow">http://www.davesgonemental.com/mysql…erialized-php/</a> Spectacula | […]</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 5/23 queries in 0.054 seconds using disk

Served from: server1.icit4u.com @ 2010-03-11 09:15:11 -->