<?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"
	>
<channel>
	<title>Comments on: Dschini Bot Checker Plugin</title>
	<atom:link href="http://manfred.dschini.org/2007/01/05/dschini-bot-checker-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://manfred.dschini.org/2007/01/05/dschini-bot-checker-plugin/</link>
	<description></description>
	<pubDate>Wed, 07 Jan 2009 13:59:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: MCB</title>
		<link>http://manfred.dschini.org/2007/01/05/dschini-bot-checker-plugin/#comment-1780</link>
		<dc:creator>MCB</dc:creator>
		<pubDate>Sat, 06 Jan 2007 23:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://manfred.dschini.org/2007/01/05/dschini-bot-checker-plugin/#comment-1780</guid>
		<description>SOAP is not available with PHP4 but you can use the following modification to make the plug-in PHP4 compatible.

1. Install NuSOAP in your include path or in the same directory as botchecker.php.  NuSOAP can be downloaded for SourceForge.

2. Make the following modifications to botchecker.php;

[FIND]
ini_set("soap.wsdl_cache_enabled","0");

[REPLACE]
include("nusoap.php");

[FIND]
        $client = new SoapClient("http://services.dschini.org/bot.php?WSDL");

[REPLACE]
        $soapclient = new SoapClient("http://services.dschini.org/bot.php?WSDL", "wsdl");
        $client = $soapclient-&#62;getProxy();

[FIND]
		$client = new SoapClient("http://services.dschini.org/bot.php?WSDL");

[REPLACE]
                $soapclient = new SoapClient("http://services.dschini.org/bot.php?WSDL", "wsdl");
                $client = $soapclient-&#62;getProxy();

3. My version of PHP had trouble with "-&#62;" for an array of arrays so I changed it to use basic array notation for named keys.

[FIND]
                                        ,$bot-&#62;id,$wpdb-&#62;escape($bot-&#62;description)
                                        ,$wpdb-&#62;escape($bot-&#62;purpose),$wpdb-&#62;escape($bot-&#62;history),$wpdb-&#62;escape($bot-&#62;license)
                                        ,$wpdb-&#62;escape($bot-&#62;exclusionuseragent),$wpdb-&#62;escape($bot-&#62;ownername),$wpdb-&#62;escape($bot-&#62;ownerurl)
                                        ,$wpdb-&#62;escape($bot-&#62;owneremail),$wpdb-&#62;escape($bot-&#62;popularity),$wpdb-&#62;escape($bot-&#62;name)
                                        ,$wpdb-&#62;escape($bot-&#62;detailsurl)

[REPLACE]
                                        ,$bot['id'],$wpdb-&#62;escape($bot['description'])
                                        ,$wpdb-&#62;escape($bot['purpose']),$wpdb-&#62;escape($bot['history']),$wpdb-&#62;escape($bot['license'])
                                        ,$wpdb-&#62;escape($bot['exclusionuseragent']),$wpdb-&#62;escape($bot['ownername']),$wpdb-&#62;escape($bot['ownerurl'])
                                        ,$wpdb-&#62;escape($bot['owneremail']),$wpdb-&#62;escape($bot['popularity']),$wpdb-&#62;escape($bot['name'])
                                        ,$wpdb-&#62;escape($bot['detailsurl'])

4. If you do not have the ability to install NuSOAP in the include path put it someplace where you do have write access and add the following immediately before the 'include("nusoap.php");'.

set_include_path(".;/wherever/you/put/nusoap/lib");</description>
		<content:encoded><![CDATA[<p>SOAP is not available with PHP4 but you can use the following modification to make the plug-in PHP4 compatible.</p>
<p>1. Install NuSOAP in your include path or in the same directory as botchecker.php.  NuSOAP can be downloaded for SourceForge.</p>
<p>2. Make the following modifications to botchecker.php;</p>
<p>[FIND]<br />
ini_set(&#8221;soap.wsdl_cache_enabled&#8221;,&#8221;0&#8243;);</p>
<p>[REPLACE]<br />
include(&#8221;nusoap.php&#8221;);</p>
<p>[FIND]<br />
        $client = new SoapClient(&#8221;http://services.dschini.org/bot.php?WSDL&#8221;);</p>
<p>[REPLACE]<br />
        $soapclient = new SoapClient(&#8221;http://services.dschini.org/bot.php?WSDL&#8221;, &#8220;wsdl&#8221;);<br />
        $client = $soapclient-&gt;getProxy();</p>
<p>[FIND]<br />
		$client = new SoapClient(&#8221;http://services.dschini.org/bot.php?WSDL&#8221;);</p>
<p>[REPLACE]<br />
                $soapclient = new SoapClient(&#8221;http://services.dschini.org/bot.php?WSDL&#8221;, &#8220;wsdl&#8221;);<br />
                $client = $soapclient-&gt;getProxy();</p>
<p>3. My version of PHP had trouble with &#8220;-&gt;&#8221; for an array of arrays so I changed it to use basic array notation for named keys.</p>
<p>[FIND]<br />
                                        ,$bot-&gt;id,$wpdb-&gt;escape($bot-&gt;description)<br />
                                        ,$wpdb-&gt;escape($bot-&gt;purpose),$wpdb-&gt;escape($bot-&gt;history),$wpdb-&gt;escape($bot-&gt;license)<br />
                                        ,$wpdb-&gt;escape($bot-&gt;exclusionuseragent),$wpdb-&gt;escape($bot-&gt;ownername),$wpdb-&gt;escape($bot-&gt;ownerurl)<br />
                                        ,$wpdb-&gt;escape($bot-&gt;owneremail),$wpdb-&gt;escape($bot-&gt;popularity),$wpdb-&gt;escape($bot-&gt;name)<br />
                                        ,$wpdb-&gt;escape($bot-&gt;detailsurl)</p>
<p>[REPLACE]<br />
                                        ,$bot['id'],$wpdb-&gt;escape($bot['description'])<br />
                                        ,$wpdb-&gt;escape($bot['purpose']),$wpdb-&gt;escape($bot['history']),$wpdb-&gt;escape($bot['license'])<br />
                                        ,$wpdb-&gt;escape($bot['exclusionuseragent']),$wpdb-&gt;escape($bot['ownername']),$wpdb-&gt;escape($bot['ownerurl'])<br />
                                        ,$wpdb-&gt;escape($bot['owneremail']),$wpdb-&gt;escape($bot['popularity']),$wpdb-&gt;escape($bot['name'])<br />
                                        ,$wpdb-&gt;escape($bot['detailsurl'])</p>
<p>4. If you do not have the ability to install NuSOAP in the include path put it someplace where you do have write access and add the following immediately before the &#8216;include(&#8221;nusoap.php&#8221;);&#8217;.</p>
<p>set_include_path(&#8221;.;/wherever/you/put/nusoap/lib&#8221;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
