<?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- Check If File Exists On Different Domain</title>
	<atom:link href="http://www.brightcherry.co.uk/scribbles/2008/11/20/php-check-if-file-exists-on-different-domain/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brightcherry.co.uk/scribbles/2008/11/20/php-check-if-file-exists-on-different-domain/</link>
	<description></description>
	<lastBuildDate>Wed, 25 Aug 2010 19:01:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Maruf</title>
		<link>http://www.brightcherry.co.uk/scribbles/2008/11/20/php-check-if-file-exists-on-different-domain/comment-page-1/#comment-1018</link>
		<dc:creator>Maruf</dc:creator>
		<pubDate>Mon, 28 Jun 2010 13:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=97#comment-1018</guid>
		<description>Hey Paul,

Many thanks, that&#039;s a great solution! I will update this post later :)

Learn something new every day...</description>
		<content:encoded><![CDATA[<p>Hey Paul,</p>
<p>Many thanks, that&#8217;s a great solution! I will update this post later <img src='http://www.brightcherry.co.uk/scribbles/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Learn something new every day&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.brightcherry.co.uk/scribbles/2008/11/20/php-check-if-file-exists-on-different-domain/comment-page-1/#comment-1017</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 28 Jun 2010 13:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=97#comment-1017</guid>
		<description>You only need to examine the headers - don&#039;t need the whole file such as in file_get_contents...

$arrHeader = get_headers($url, 1);
if ( strpos( $arrHeader[0], &#039;404&#039; ) !== false ){
//Got it!
} else {
Not so much!
}</description>
		<content:encoded><![CDATA[<p>You only need to examine the headers &#8211; don&#8217;t need the whole file such as in file_get_contents&#8230;</p>
<p>$arrHeader = get_headers($url, 1);<br />
if ( strpos( $arrHeader[0], &#8217;404&#8242; ) !== false ){<br />
//Got it!<br />
} else {<br />
Not so much!<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.brightcherry.co.uk/scribbles/2008/11/20/php-check-if-file-exists-on-different-domain/comment-page-1/#comment-978</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sun, 16 May 2010 13:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=97#comment-978</guid>
		<description>file_get_contents(&quot;http://example.com/path/to/image.gif&quot;,0,null,0,1) is a much better solution!</description>
		<content:encoded><![CDATA[<p>file_get_contents(&#8220;http://example.com/path/to/image.gif&#8221;,0,null,0,1) is a much better solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: learner</title>
		<link>http://www.brightcherry.co.uk/scribbles/2008/11/20/php-check-if-file-exists-on-different-domain/comment-page-1/#comment-710</link>
		<dc:creator>learner</dc:creator>
		<pubDate>Thu, 27 Aug 2009 17:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=97#comment-710</guid>
		<description>nice post. it was helpful.</description>
		<content:encoded><![CDATA[<p>nice post. it was helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake</title>
		<link>http://www.brightcherry.co.uk/scribbles/2008/11/20/php-check-if-file-exists-on-different-domain/comment-page-1/#comment-638</link>
		<dc:creator>Blake</dc:creator>
		<pubDate>Wed, 22 Jul 2009 04:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=97#comment-638</guid>
		<description>Couldn&#039;t you just put the @fopen directly into the if expression? If it returns a resource it will be TRUE, if not it will be FALSE. Forget the strpos()</description>
		<content:encoded><![CDATA[<p>Couldn&#8217;t you just put the @fopen directly into the if expression? If it returns a resource it will be TRUE, if not it will be FALSE. Forget the strpos()</p>
]]></content:encoded>
	</item>
</channel>
</rss>
