<?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/"
	>

<channel>
	<title>Bart De Waele &#187; tys' comment &#187; July 2008</title>
	<link>http://www.bartdewaele.be/</link>
	<description>Bart De Waele &#187; tys' comment &#187; July 2008</description>
	<generator>Gregarius 0.5.4</generator>
	<language>en</language>
	<item>
		<title>tys' comment: Important PHP Mollom update</title>
		<link>http://feeds.feedburner.com/~r/TijsComment/~3/333466498/</link>
		<pubDate>Sat, 12 Jul 2008 13:25:59 +0200</pubDate>
		<guid>http://feeds.feedburner.com/~r/TijsComment/~3/333466498/</guid>
		<content:encoded><![CDATA[	<p>If you read <a href="http://mollom.com/files/mollom-client-api.pdf">Molloms API documentation</a> you can see that some calls have an (optional) parameter called author_ip. In <a href="http://mollom.crsolutions.be/" title="PHP Mollom">PHP Mollom</a> the IP-address is set automagically, so you don&#8217;t have to worry. But the variable I used could be spoofed.</p>
<p>As you know getting the right IP-address is not that easy. If your application is running behind a reverse proxy $_SERVER[&#8217;REMOTE_ADDR_HTTP&#8217;] contains the reverse proxy&#8217;s IP. Or if your application is running on a cluster setup the clients IP-address is storred in $_SERVER[&#8217;HTTP_X_CLUSTER_CLIENT_IP&#8217;].</p>
<p>But both of these variables can be spoofed by spammers, so we are not sure these values are right. So PHP Mollom needs to know the allowed IP-addreses for the reverse proxy&#8217;s. I build in a function Mollom::setAllowedReverseProxyAddresses that accepts an array of allowed IP-addresses.</p>
<p>Please update your applications with the <a href="http://mollom.crsolutions.be/">new version</a>.</p> ]]></content:encoded>
</item>
<item>
		<title>tys' comment: CDATA with simpleXML (PHP)</title>
		<link>http://feeds.feedburner.com/~r/TijsComment/~3/331076828/</link>
		<pubDate>Wed, 09 Jul 2008 22:14:34 +0200</pubDate>
		<guid>http://feeds.feedburner.com/~r/TijsComment/~3/331076828/</guid>
		<content:encoded><![CDATA[	<p>It is been a while. But I&#8217;m back.</p>
<p>A lot of new Web 2.0 applications use API&#8217;s. Most of the time they return XML, and some of those services do it well by encapsulating their data in CDATA-tags.</p>
<p>But simpleXML doesn&#8217;t like CDATA. Think again. Use the code below and you will have full access to the data in the CDATA-tags.</p>

$xml = simplexml_load_string&#40;$string, &#8216;SimpleXMLElement&#8217;, LIBXML_NOCDATA&#41;;

<p>Have fun!</p> ]]></content:encoded>
</item>


</channel>
</rss>
