<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Crazy world ... &#187; Wordpress</title>
	<atom:link href="http://blog.dogguy.org/index.php/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dogguy.org</link>
	<description>Crazy world, crazy thoughts ... crazy blog !</description>
	<lastBuildDate>Wed, 16 Jun 2010 18:44:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress and mysql_affected_rows</title>
		<link>http://blog.dogguy.org/index.php/2008/04/04/wordpress-and-mysql_affected_rows/</link>
		<comments>http://blog.dogguy.org/index.php/2008/04/04/wordpress-and-mysql_affected_rows/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 09:32:27 +0000</pubDate>
		<dc:creator>Mehdi</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.dogguy.org/blog/2008/04/04/wordpress-and-mysql_affected_rows/</guid>
		<description><![CDATA[After my server upgrade, I noticed a strange problem that arises only after publishing/updating posts. Every time, I get many errors of this kind :

Warning: mysql_affected_rows() [function.mysql-affected-rows]: A link to the server could not be established in /home/path_to_my_blog/wp-includes/wp-db.php on line 183

But, the publish/update action if actually executed ! So I tried to get in the [...]]]></description>
			<content:encoded><![CDATA[<p>After my server upgrade, I noticed a strange problem that arises only after publishing/updating posts. Every time, I get many errors of this kind :</p>
<div style="text-align:center"><code><br />
Warning: mysql_affected_rows() [function.mysql-affected-rows]: A link to the server could not be established in /home/path_to_my_blog/wp-includes/wp-db.php on line 183<br />
</code></div>
<p>But, the publish/update action if actually executed ! So I tried to get in the code and just replacing this line </p>
<div style="text-align:center"><code>$this->rows_affected = mysql_affected_rows();</code></div>
<p>by this one </p>
<div style="text-align:center"><code>$this->rows_affected = mysql_affected_rows($this->dbh);</code></div>
<p>solved the problem.</p>
<p>Is it so difficult for the Wordpress Team to put explicitly connection link to the database server ?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dogguy.org/index.php/2008/04/04/wordpress-and-mysql_affected_rows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress (v2.1) permalinks and Lighttpd (v1.4)</title>
		<link>http://blog.dogguy.org/index.php/2008/03/29/wordpress-v21-permalinks-and-lighttpd-v14/</link>
		<comments>http://blog.dogguy.org/index.php/2008/03/29/wordpress-v21-permalinks-and-lighttpd-v14/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 16:00:57 +0000</pubDate>
		<dc:creator>Mehdi</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Logiciels]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.dogguy.org/blog/2008/03/29/wordpress-v21-permalinks-and-lighttpd-v14/</guid>
		<description><![CDATA[Last days, I moved my website on a new server and I installed Lighttpd instead of Apache. The first problem I had to solve was about permalinks. It&#8217;s always more comfortable to use links like :
http://www.dogguy.org/blog/%year%/%month%/%day%/%post_name%  
than 
http://www.dogguy.org/blog/index.php?p=%post_id% 
Then, I tried to look, using Google, what people have done to avoid this issue. One [...]]]></description>
			<content:encoded><![CDATA[<p>Last days, I moved my website on a new server and I installed Lighttpd instead of Apache. The first problem I had to solve was about permalinks. It&#8217;s always more comfortable to use links like :</p>
<p><code>http://www.dogguy.org/blog/%year%/%month%/%day%/%post_name% </code> </p>
<p>than </p>
<p><code>http://www.dogguy.org/blog/index.php?p=%post_id% </code></p>
<p>Then, I tried to look, using Google, what people have done to avoid this issue. <a href="http://blog.forret.com/2007/03/urlrewrite-for-wordpress-on-lighttpd/">One</a> <a href="http://greatwebguy.com/web-servers/lighttpd/lighttpd-15-rewrite-rules-for-wordpress-22/">solution</a> is to redirect every query to this <code> /blog/index.php/%year%/%month%/%day%/%post_name% </code>, but it didn&#8217;t work for me. Another one is to use _GET variables. This final solution seems pretty clean &#8230; but it didn&#8217;t work neither. So I tried to modify it to make it work. It wasn&#8217;t difficult and here is the result :</p>
<p><code><br />
$HTTP["host"] =~ "www.dogguy.org" {<br />
url.rewrite = (<br />
  "^/blog/((wp-.+)|images).*/?" => "$0",<br />
  "^/blog/(sitemap.xml)" => "$0",<br />
  "^/blog/(xmlrpc.php)" => "$0",<br />
  "^/blog/page/([0-9]+)/?$" => "/blog/index.php?paged=$1",<br />
  "^/blog/([0-9]+)/?$" => "/blog/index.php?m=$1",<br />
  "^/blog/([0-9]+)/([0-9]+)/?$" => "/blog/index.php?m=$1$2",<br />
  "^/blog/([0-9]+)/([0-9]+)/([0-9]+)/?$" => "/blog/index.php?m=$1$2$3",<br />
  "^/blog/([0-9]+)/([0-9]+)/([0-9]+)/([_0-9a-zA-Z-]+)/?$" => "/blog/index.php?name=$4",<br />
  "^/blog/([0-9]+)/([0-9]+)/([0-9]+)/([_0-9a-zA-Z-]+)/feed/?$" => "/blog/index.php?name=$4&#038;feed=rss2",<br />
  "^/blog/([0-9]+)/([0-9]+)/([0-9]+)/([_0-9a-zA-Z-]+)/feed/(feed|rdf|rss|rss2|atom)/?$" => "/blog/index.php?name=$4&#038;feed=$5",<br />
  "^/blog/([_0-9a-zA-Z-]+)/?$" => "/blog/index.php?page_id=$1",<br />
  "^/blog/feed/(feed|rdf|rss|rss2|atom)/?$" => "/blog/index.php?feed=$2",<br />
  "^/blog/comments/feed/?$" => "/blog/index.php?feed=comments-rss2",<br />
  "^/blog/comments/feed/(feed|rdf|rss|rss2|atom)/?$" => "/blog/index.php?feed=comments-$1",<br />
  "^/blog/(.+)/([0-9]+)/[^/]+/?/trackback/?$" => "/blog/index.php?category_name=$1&#038;p=$2&#038;tb=1",<br />
  "^/blog/category/(.+)/?$" => "/blog/index.php?category_name=$1",<br />
  "^/blog/category/(.+)/feed/?$" => "/blog/index.php?category_name=$1&#038;feed=rss2",<br />
  "^/blog/category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$" => "/blog/index.php?category_name=$1&#038;feed=$2",<br />
  )<br />
}<br />
</code> </p>
<p>Maybe it isn&#8217;t complete enough for you &#8230; but it suits my needs completely <img src='http://blog.dogguy.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Any suggestion to enhance this piece of code is welcome.</p>
<p><strong>UPDATE:</strong> I forgot trackback ! And I use this occasion to change feeds URLs and other missing things. So here is my new set of rules :</p>
<p><code><br />
$HTTP["host"] =~ "www.dogguy.org" {<br />
  url.rewrite = (<br />
    "^/blog/((wp-.+)|images).*/?" => "$0",<br />
    "^/blog/(sitemap.xml)" => "$0",<br />
    "^/blog/(xmlrpc.php)" => "$0",<br />
    "^/blog/page/([0-9]+)/?$" => "/blog/index.php?paged=$1",<br />
    "^/blog/([0-9]+)/?$" => "/blog/index.php?m=$1",<br />
    "^/blog/([0-9]+)/([0-9]+)/?$" => "/blog/index.php?m=$1$2",<br />
    "^/blog/([0-9]+)/([0-9]+)/page/([0-9]+)/?$" => "/blog/index.php?m=$1$2&#038;paged=$3",<br />
    "^/blog/([0-9]+)/([0-9]+)/([0-9]+)/?$" => "/blog/index.php?m=$1$2$3",<br />
    "^/blog/([0-9]+)/([0-9]+)/([0-9]+)/([_0-9a-zA-Z-]+)/?$" => "/blog/index.php?year=$1&#038;monthnum=$2&#038;day=$3&#038;name=$4",<br />
    "^/blog/([0-9]+)/([0-9]+)/([0-9]+)/([_0-9a-zA-Z-]+)/trackback/?$" => "/blog/wp-trackback.php?year=$1&#038;monthnum=$2&#038;day=$3&#038;name=$4",<br />
    "^/blog/([0-9]+)/([0-9]+)/([0-9]+)/([_0-9a-zA-Z-]+)/(feed|rdf|rss|rss2|atom)/?$" => "/blog/index.php?year=$1&#038;monthnum=$2&#038;day=$3&#038;name=$4&#038;feed=$5",<br />
    "^/blog/([_0-9a-zA-Z-]+)/?$" => "/blog/index.php?page_id=$1",<br />
    "^/blog/(feed|rdf|rss|rss2|atom)/?$" => "/blog/index.php?feed=$2",<br />
    "^/blog/comments/(feed|rdf|rss|rss2|atom)/?$" => "/blog/index.php?feed=comments-$1",<br />
    "^/blog/(.+)/([0-9]+)/[^/]+/?/trackback/?$" => "/blog/index.php?category_name=$1&#038;p=$2&#038;tb=1",<br />
    "^/blog/category/(.+)/page/([0-9]+)/?$" => "/blog/index.php?category_name=$1&#038;paged=$2",<br />
    "^/blog/category/(.+)/(feed|rdf|rss|rss2|atom)/?$" => "/blog/index.php?category_name=$1&#038;feed=$2",<br />
    "^/blog/category/(.+)/?$" => "/blog/index.php?category_name=$1",<br />
  )<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dogguy.org/index.php/2008/03/29/wordpress-v21-permalinks-and-lighttpd-v14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
