<?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: How to Collect the Images and Meta Tags from a Webpage with PHP</title>
	<atom:link href="/2011/02/25/how-to-collect-the-images-and-meta-tags-from-a-webpage-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>/2011/02/25/how-to-collect-the-images-and-meta-tags-from-a-webpage-with-php/</link>
	<description>on web development</description>
	<lastBuildDate>Fri, 26 Oct 2018 21:40:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>By: Shurvir Mori</title>
		<link>/2011/02/25/how-to-collect-the-images-and-meta-tags-from-a-webpage-with-php/comment-page-1/#comment-436131</link>
		<dc:creator><![CDATA[Shurvir Mori]]></dc:creator>
		<pubDate>Mon, 26 Dec 2016 12:15:43 +0000</pubDate>
		<guid isPermaLink="false">/?p=2216#comment-436131</guid>
		<description><![CDATA[I can&#039;t get og:image. Please help me to find it via php.]]></description>
		<content:encoded><![CDATA[<p>I can&#8217;t get og:image. Please help me to find it via php.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Peterson</title>
		<link>/2011/02/25/how-to-collect-the-images-and-meta-tags-from-a-webpage-with-php/comment-page-1/#comment-241325</link>
		<dc:creator><![CDATA[Tim Peterson]]></dc:creator>
		<pubDate>Sat, 03 Jan 2015 03:00:41 +0000</pubDate>
		<guid isPermaLink="false">/?p=2216#comment-241325</guid>
		<description><![CDATA[I couldn&#039;t get the above to work, but here&#039;s what worked for me:

&lt;code&gt;
		include &#039;../simple_html_dom.php&#039;;  //PHP Simple DOM parser http://simplehtmldom.sourceforge.net/

		$html = file_get_html(&#039;https://onarbor.com/&#039;);

		preg_match_all(&#039;//&#039;, $html, $matches);

              print_r($matches);
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>I couldn&#8217;t get the above to work, but here&#8217;s what worked for me:</p>
<p><code><br />
		include '../simple_html_dom.php';  //PHP Simple DOM parser http://simplehtmldom.sourceforge.net/</p>
<p>		$html = file_get_html('https://onarbor.com/');</p>
<p>		preg_match_all('//', $html, $matches);</p>
<p>              print_r($matches);<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Search and Fetch</title>
		<link>/2011/02/25/how-to-collect-the-images-and-meta-tags-from-a-webpage-with-php/comment-page-1/#comment-18638</link>
		<dc:creator><![CDATA[Search and Fetch]]></dc:creator>
		<pubDate>Thu, 25 Apr 2013 09:33:44 +0000</pubDate>
		<guid isPermaLink="false">/?p=2216#comment-18638</guid>
		<description><![CDATA[ &#039;attachment&#039;, 
       &#039;orderby&#039; =&#062; &#039;menu_order&#039;, 
        &#039;order&#039; =&#062; &#039;ASC&#039;, 
        &#039;post_mime_type&#039; =&#062; &#039;image&#039; ,
         &#039;post_status&#039; =&#062; null, 
         &#039;numberposts&#039; =&#062; null, 
          &#039;post_parent&#039; =&#062; $post-&#062;ID,
         &#039;exclude&#039;     =&#062; get_post_thumbnail_id()
    );
$attachments = get_posts($args); ?&#062;
 
     
    ID, &#039;_wp_attachment_image_alt&#039;, true);
                                $image_title = $attachment-&#062;post_title;
                                $caption = $attachment-&#062;post_excerpt;
                                $description = $attachment-&#062;post_content;
                                $src = wp_get_attachment_image_src( $attachment-&#062;ID, &#039;full&#039; ); 
                                list($width, $height, $type, $attr) = getimagesize($src[0]); ?&#062;

    
    

        
TRY THIS

         
        
        
    
        &#060;img src=&#034;&quot; class=&quot;project-images 
    
    ]]></description>
		<content:encoded><![CDATA[<p> &#8216;attachment&#8217;,<br />
       &#8216;orderby&#8217; =&gt; &#8216;menu_order&#8217;,<br />
        &#8216;order&#8217; =&gt; &#8216;ASC&#8217;,<br />
        &#8216;post_mime_type&#8217; =&gt; &#8216;image&#8217; ,<br />
         &#8216;post_status&#8217; =&gt; null,<br />
         &#8216;numberposts&#8217; =&gt; null,<br />
          &#8216;post_parent&#8217; =&gt; $post-&gt;ID,<br />
         &#8216;exclude&#8217;     =&gt; get_post_thumbnail_id()<br />
    );<br />
$attachments = get_posts($args); ?&gt;</p>
<p>    ID, &#8216;_wp_attachment_image_alt&#8217;, true);<br />
                                $image_title = $attachment-&gt;post_title;<br />
                                $caption = $attachment-&gt;post_excerpt;<br />
                                $description = $attachment-&gt;post_content;<br />
                                $src = wp_get_attachment_image_src( $attachment-&gt;ID, &#8216;full&#8217; );<br />
                                list($width, $height, $type, $attr) = getimagesize($src[0]); ?&gt;</p>
<p>TRY THIS</p>
<p>        &lt;img src=&quot;&#8221; class=&#8221;project-images </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pasacioclux</title>
		<link>/2011/02/25/how-to-collect-the-images-and-meta-tags-from-a-webpage-with-php/comment-page-1/#comment-16543</link>
		<dc:creator><![CDATA[pasacioclux]]></dc:creator>
		<pubDate>Wed, 05 Sep 2012 16:53:06 +0000</pubDate>
		<guid isPermaLink="false">/?p=2216#comment-16543</guid>
		<description><![CDATA[can you put an example for google plus?... don&#039;t know how to make it work :/]]></description>
		<content:encoded><![CDATA[<p>can you put an example for google plus?&#8230; don&#8217;t know how to make it work :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten Skogly</title>
		<link>/2011/02/25/how-to-collect-the-images-and-meta-tags-from-a-webpage-with-php/comment-page-1/#comment-14358</link>
		<dc:creator><![CDATA[Morten Skogly]]></dc:creator>
		<pubDate>Sat, 09 Jul 2011 14:53:12 +0000</pubDate>
		<guid isPermaLink="false">/?p=2216#comment-14358</guid>
		<description><![CDATA[Hm, shouldn&#039;t this work?
&lt;pre lang=&quot;php&quot;&gt;
$source = file_get_contents(&#039;http://nrkp3.no/filmpolitiet/2011/07/tidenes-spilloppgjoer-i-miniatyrformat/&#039;);

if (preg_match(&#039;//&#039;, $source)) {
    echo &quot;A match was found.&quot;;
} else {
    echo &quot;A match was not found.&quot;;
}
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Hm, shouldn&#8217;t this work?</p>
<pre lang="php">
$source = file_get_contents('http://nrkp3.no/filmpolitiet/2011/07/tidenes-spilloppgjoer-i-miniatyrformat/');

if (preg_match('//', $source)) {
    echo "A match was found.";
} else {
    echo "A match was not found.";
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: abcphp.com</title>
		<link>/2011/02/25/how-to-collect-the-images-and-meta-tags-from-a-webpage-with-php/comment-page-1/#comment-14209</link>
		<dc:creator><![CDATA[abcphp.com]]></dc:creator>
		<pubDate>Sat, 26 Feb 2011 01:30:12 +0000</pubDate>
		<guid isPermaLink="false">/?p=2216#comment-14209</guid>
		<description><![CDATA[&lt;strong&gt;How to Collect the Images and Meta Tags from a Webpage with PHP...&lt;/strong&gt;

You’ve definitely seen the “share a link” screen in Facebook. When you paste a link into the box (fig. 1) and press the “Attach” button you’ll get the prompted cite parsed with a title, description and possibly thumb (fig. 2). This functionality is wel...]]></description>
		<content:encoded><![CDATA[<p><strong>How to Collect the Images and Meta Tags from a Webpage with PHP&#8230;</strong></p>
<p>You’ve definitely seen the “share a link” screen in Facebook. When you paste a link into the box (fig. 1) and press the “Attach” button you’ll get the prompted cite parsed with a title, description and possibly thumb (fig. 2). This functionality is wel&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
