<?xml version="1.0" encoding="ISO-8859-1"?><!-- generator="wordpress/2.0.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: New PHP Class: IMDb_Fetch</title>
	<link>http://mikaelb.net/2007/new-php-class-imdb_fetch/</link>
	<description>PHP, MySQL, CSS, XHTML, JavaScript</description>
	<pubDate>Sat, 06 Sep 2008 02:26:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>

	<item>
		<title>by: Mikael Brevik</title>
		<link>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-15335</link>
		<pubDate>Sun, 27 Jul 2008 15:32:22 +0000</pubDate>
		<guid>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-15335</guid>
					<description>It should work, and a quick test confirms it:
[php]&lt; ?php
$imdb = new IMDb_Fetch();
$imdb-&gt;add_movie('tt0468569');
print_r($imdb-&gt;get_result_array());
?&gt;[/php]


Result:
&lt;pre&gt;Array
(
    [0] =&gt; Array
        (
            [id] =&gt; tt0468569
            [name] =&gt; The Dark Knight
        )
)&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>It should work, and a quick test confirms it:</p>
<div class="syntax_hilite">
<div id="php-1">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600;">&lt;?php</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: red;">$imdb</span> = <span style="color:#006600;">new</span> IMDb_Fetch<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: red;">$imdb</span>-&gt;<span style="color:#0000FF;">add_movie</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'tt0468569'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/print_r"><span style="color:#0000FF;">print_r</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: red;">$imdb</span>-&gt;<span style="color:#0000FF;">get_result_array</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Result:</p>
<pre>Array
(
    [0] => Array
        (
            [id] => tt0468569
            [name] => The Dark Knight
        )
)</pre>
]]></content:encoded>
				</item>
	<item>
		<title>by: DavidS</title>
		<link>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-15230</link>
		<pubDate>Thu, 24 Jul 2008 23:33:44 +0000</pubDate>
		<guid>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-15230</guid>
					<description>Ah, still in the army, yes. However, the &quot;add_movie ()&quot;/constructor could accept IMDb IDs as well as titles, does my job easier! :) (can't really remember if it does, however, don't think so).</description>
		<content:encoded><![CDATA[<p>Ah, still in the army, yes. However, the "add_movie ()"/constructor could accept IMDb IDs as well as titles, does my job easier! :) (can't really remember if it does, however, don't think so).
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mikael Brevik</title>
		<link>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-15124</link>
		<pubDate>Mon, 21 Jul 2008 21:00:42 +0000</pubDate>
		<guid>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-15124</guid>
					<description>I'm all aware of these problems, DavidS. And there was a fix in production for some time ago. Due lack of time there was never implemented and there is yet to come a final release. As you can see this is only the 0.9.0.1 version. I hope when I'm done with my service in the militery and my moving, I'll be able to get back to this and release a final package for this class.</description>
		<content:encoded><![CDATA[<p>I'm all aware of these problems, DavidS. And there was a fix in production for some time ago. Due lack of time there was never implemented and there is yet to come a final release. As you can see this is only the 0.9.0.1 version. I hope when I'm done with my service in the militery and my moving, I'll be able to get back to this and release a final package for this class.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: DavidS</title>
		<link>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-15110</link>
		<pubDate>Mon, 21 Jul 2008 11:17:59 +0000</pubDate>
		<guid>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-15110</guid>
					<description>What if there's more than one director? What if the h5 title is &quot;Creator&quot; or &quot;Creators&quot; instead of &quot;Director&quot;?</description>
		<content:encoded><![CDATA[<p>What if there's more than one director? What if the h5 title is "Creator" or "Creators" instead of "Director"?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: My Hobby is Programming &#187; Blog Archive &#187; New PHP Class: IMDb_Fetch</title>
		<link>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-5869</link>
		<pubDate>Tue, 30 Oct 2007 14:21:34 +0000</pubDate>
		<guid>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-5869</guid>
					<description>[...] read more &amp;#124; digg story [...]</description>
		<content:encoded><![CDATA[<p>[...] read more | digg story [...]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mikael Brevik</title>
		<link>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-5271</link>
		<pubDate>Wed, 26 Sep 2007 20:32:39 +0000</pubDate>
		<guid>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-5271</guid>
					<description>Hey. Yeah. Ive thought of that some servers doesnt support the fopen-wrapper. So the next version of the class will be based on cURL. I have something ready already, with correct HTTP-headers. But if you let me have a look at yours that would be great. Send me an e-mail @ mikaelb AT mikaelb DOT net

Thanks for commenting.</description>
		<content:encoded><![CDATA[<p>Hey. Yeah. Ive thought of that some servers doesnt support the fopen-wrapper. So the next version of the class will be based on cURL. I have something ready already, with correct <acronym title="HyperText Transfer Protocol">HTTP</acronym>-headers. But if you let me have a look at yours that would be great. Send me an e-mail @ mikaelb AT mikaelb DOT net</p>
<p>Thanks for commenting.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Marios Tziortzis</title>
		<link>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-5270</link>
		<pubDate>Wed, 26 Sep 2007 20:28:27 +0000</pubDate>
		<guid>http://mikaelb.net/2007/new-php-class-imdb_fetch/#comment-5270</guid>
					<description>This seems a nice class. I wrote something similar a couple of years ago. Just have in mind that some servers do not support fopen(); In that case try using CURL. I have a pretty good CURL function that does the job right. Also it sends the 'googlebot' as the useragent to avoid getting banned from some services. If you want any help with it drop me a line.</description>
		<content:encoded><![CDATA[<p>This seems a nice class. I wrote something similar a couple of years ago. Just have in mind that some servers do not support fopen(); In that case try using CURL. I have a pretty good CURL function that does the job right. Also it sends the 'googlebot' as the useragent to avoid getting banned from some services. If you want any help with it drop me a line.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
