<?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/"
		>
<channel>
	<title>Comments on: PHP Webthumb API wrapper</title>
	<atom:link href="http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/</link>
	<description>The weblog of Joshua Eichorn, AJAX, PHP and Open Source</description>
	<lastBuildDate>Mon, 30 Nov 2009 18:24:26 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joshua Eichorn</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-42389</link>
		<dc:creator>Joshua Eichorn</dc:creator>
		<pubDate>Wed, 27 Sep 2006 15:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-42389</guid>
		<description>tobozo: XMLHttpRequest can only make requests to the same domain.</description>
		<content:encoded><![CDATA[<p>tobozo: XMLHttpRequest can only make requests to the same domain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Eichorn</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-42388</link>
		<dc:creator>Joshua Eichorn</dc:creator>
		<pubDate>Wed, 27 Sep 2006 15:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-42388</guid>
		<description>NK: thats a bug your hitting on the webthumb server.  Can you send me the XML payload that causes that message (josh@bluga.net)</description>
		<content:encoded><![CDATA[<p>NK: thats a bug your hitting on the webthumb server.  Can you send me the XML payload that causes that message (josh@bluga.net)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NK</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-42380</link>
		<dc:creator>NK</dc:creator>
		<pubDate>Wed, 27 Sep 2006 15:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-42380</guid>
		<description>Hi,

thanks a lot for the tutorial. Since my web server doesn&#039;t have libcurl I wrote the following class using the PEAR package HTTP_request:

private function _executeHttpRequest($request) {
	$req =&amp; new HTTP_Request($this-&gt;_request_uri);
	$req-&gt;addHeader(&#039;Content-Type:&#039;, &#039;application/xml&#039;);
	$req-&gt;addRawPostData($request);
	
	$response = $req-&gt;sendRequest();
	
	if (PEAR::isError($response)) {
	    echo $response-&gt;getMessage();
	} else {
		//echo $req-&gt;getResponseBody();
		return $req-&gt;getResponseBody();
	}
}

It works quite finde, but I&#039;m having another problem:

When the script asks the server for the current status after 5 seconds, the server returns the error &quot;Cross dependency found in OUTER JOIN; examine your ON conditions&quot; instead of an XML message such as .... I guess it&#039;s got something to do with the database... But despite this error the requested screenshot is shown on the homepage of http://bluga.net/webthumb/.

Does anyone have any idea?

Thanks in advance,

NK</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks a lot for the tutorial. Since my web server doesn&#8217;t have libcurl I wrote the following class using the PEAR package HTTP_request:</p>
<p>private function _executeHttpRequest($request) {<br />
	$req =&amp; new HTTP_Request($this-&gt;_request_uri);<br />
	$req-&gt;addHeader(&#8217;Content-Type:&#8217;, &#8216;application/xml&#8217;);<br />
	$req-&gt;addRawPostData($request);</p>
<p>	$response = $req-&gt;sendRequest();</p>
<p>	if (PEAR::isError($response)) {<br />
	    echo $response-&gt;getMessage();<br />
	} else {<br />
		//echo $req-&gt;getResponseBody();<br />
		return $req-&gt;getResponseBody();<br />
	}<br />
}</p>
<p>It works quite finde, but I&#8217;m having another problem:</p>
<p>When the script asks the server for the current status after 5 seconds, the server returns the error &#8220;Cross dependency found in OUTER JOIN; examine your ON conditions&#8221; instead of an XML message such as &#8230;. I guess it&#8217;s got something to do with the database&#8230; But despite this error the requested screenshot is shown on the homepage of <a href="http://bluga.net/webthumb/" rel="nofollow">http://bluga.net/webthumb/</a>.</p>
<p>Does anyone have any idea?</p>
<p>Thanks in advance,</p>
<p>NK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tobozo</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-39976</link>
		<dc:creator>tobozo</dc:creator>
		<pubDate>Thu, 21 Sep 2006 14:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-39976</guid>
		<description>Alternative for non-php5 and curl-disabled hosts (most webservers on this planet) :

The HTTP class from Manuel Lemos can replace some of the methods used by CURL extension : 

http://www.phpclasses.org/browse/package/3.html

The Ister simplexml44 car replace the php5-only SimpleXML extension (needs EXPAT) :

http://www.ister.org/code/simplexml44/index.xhtml

Some reality : 

http://www.nexen.net/images/stories/phpversion/200605/evolution.milieu.en.mini.png</description>
		<content:encoded><![CDATA[<p>Alternative for non-php5 and curl-disabled hosts (most webservers on this planet) :</p>
<p>The HTTP class from Manuel Lemos can replace some of the methods used by CURL extension : </p>
<p><a href="http://www.phpclasses.org/browse/package/3.html" rel="nofollow">http://www.phpclasses.org/browse/package/3.html</a></p>
<p>The Ister simplexml44 car replace the php5-only SimpleXML extension (needs EXPAT) :</p>
<p><a href="http://www.ister.org/code/simplexml44/index.xhtml" rel="nofollow">http://www.ister.org/code/simplexml44/index.xhtml</a></p>
<p>Some reality : </p>
<p><a href="http://www.nexen.net/images/stories/phpversion/200605/evolution.milieu.en.mini.png" rel="nofollow">http://www.nexen.net/images/stories/phpversion/200605/evolution.milieu.en.mini.png</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hasin Hayder</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-39396</link>
		<dc:creator>Hasin Hayder</dc:creator>
		<pubDate>Tue, 19 Sep 2006 02:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-39396</guid>
		<description>Linkerman, the script will only work with PHP5, sorry.</description>
		<content:encoded><![CDATA[<p>Linkerman, the script will only work with PHP5, sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linkerman</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-38558</link>
		<dc:creator>linkerman</dc:creator>
		<pubDate>Fri, 15 Sep 2006 23:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-38558</guid>
		<description>Thanks for your answer, i&#039;ve got php Version 4.4.4 i saw the date of creation of function on this page http://php.benscom.com/manual/fr/ref.curl.php
I think the script php should work on my server, but i don&#039;t know how.
i just wanted to send request with an url and get the url of thumbnails 80x60 back on my page.I just know little things about xml language i&#039;m a novice.Can i use just javascript that could send you request with the info found here http://bluga.net/webthumb/api.txt ? 
a script like this could be possible ? what can i add ?
And where enter the message xml from your information api.txt


function go()
{
var xhr_object = null;

if(window.XMLHttpRequest) // Firefox
   xhr_object = new XMLHttpRequest();
else if(window.ActiveXObject) // Internet Explorer
   xhr_object = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
else { 
   alert(&quot;Navigator don&#039;t support XMLHTTPRequest...&quot;);
   return;
}

xhr_object.open(&quot;GET&quot;, http://..., false);
xhr_object.send(null);
if(xhr_object.readyState == 4) alert(&quot;Request Done !&quot;);
}






Thanks a lot...</description>
		<content:encoded><![CDATA[<p>Thanks for your answer, i&#8217;ve got php Version 4.4.4 i saw the date of creation of function on this page <a href="http://php.benscom.com/manual/fr/ref.curl.php" rel="nofollow">http://php.benscom.com/manual/fr/ref.curl.php</a><br />
I think the script php should work on my server, but i don&#8217;t know how.<br />
i just wanted to send request with an url and get the url of thumbnails 80&#215;60 back on my page.I just know little things about xml language i&#8217;m a novice.Can i use just javascript that could send you request with the info found here <a href="http://bluga.net/webthumb/api.txt" rel="nofollow">http://bluga.net/webthumb/api.txt</a> ?<br />
a script like this could be possible ? what can i add ?<br />
And where enter the message xml from your information api.txt</p>
<p>function go()<br />
{<br />
var xhr_object = null;</p>
<p>if(window.XMLHttpRequest) // Firefox<br />
   xhr_object = new XMLHttpRequest();<br />
else if(window.ActiveXObject) // Internet Explorer<br />
   xhr_object = new ActiveXObject(&#8221;Microsoft.XMLHTTP&#8221;);<br />
else {<br />
   alert(&#8221;Navigator don&#8217;t support XMLHTTPRequest&#8230;&#8221;);<br />
   return;<br />
}</p>
<p>xhr_object.open(&#8221;GET&#8221;, <a href="http://..." rel="nofollow">http://&#8230;</a>, false);<br />
xhr_object.send(null);<br />
if(xhr_object.readyState == 4) alert(&#8221;Request Done !&#8221;);<br />
}</p>
<p>Thanks a lot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Eichorn</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-38495</link>
		<dc:creator>Joshua Eichorn</dc:creator>
		<pubDate>Fri, 15 Sep 2006 19:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-38495</guid>
		<description>Linkerman:
I didn&#039;t write the PHP wrapper, so im not sure what its doing error handling wise.

But i know it uses the curl extension so if you don&#039;t have that, you might be getting an error like that.

On the webthumb server side of things im just recieving http requests and sending reponses.</description>
		<content:encoded><![CDATA[<p>Linkerman:<br />
I didn&#8217;t write the PHP wrapper, so im not sure what its doing error handling wise.</p>
<p>But i know it uses the curl extension so if you don&#8217;t have that, you might be getting an error like that.</p>
<p>On the webthumb server side of things im just recieving http requests and sending reponses.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linkerman</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-38473</link>
		<dc:creator>linkerman</dc:creator>
		<pubDate>Fri, 15 Sep 2006 17:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-38473</guid>
		<description>Oh oh sorry but is it the right way to install the script on my ftp ? why nothing happens no creation of class ? Thanks to tell please.</description>
		<content:encoded><![CDATA[<p>Oh oh sorry but is it the right way to install the script on my ftp ? why nothing happens no creation of class ? Thanks to tell please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-38277</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Thu, 14 Sep 2006 21:58:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-38277</guid>
		<description>Oh - I&#039;m glad it&#039;s not me - thanks!</description>
		<content:encoded><![CDATA[<p>Oh &#8211; I&#8217;m glad it&#8217;s not me &#8211; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Eichorn</title>
		<link>http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/comment-page-1/#comment-38267</link>
		<dc:creator>Joshua Eichorn</dc:creator>
		<pubDate>Thu, 14 Sep 2006 20:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2006/09/04/php-webthumb-api-wrapper/#comment-38267</guid>
		<description>Robin: You found a bug, its fixed now</description>
		<content:encoded><![CDATA[<p>Robin: You found a bug, its fixed now</p>
]]></content:encoded>
	</item>
</channel>
</rss>
