<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1045339" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1045339</link>
    <description></description>
    <language>en</language>
          <item>
    <title>I&#039;ve never used DOMDocument</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/using-php-dom-find-innerhtml-div-id#comment-1245894</link>
    <description> &lt;p&gt;I&#039;ve never used DOMDocument before, but according to the &lt;a href=&quot;http://php.net/manual/en/class.domdocument.php&quot;&gt;docs&lt;/a&gt;, you&#039;re using the &lt;a href=&quot;http://www.php.net/manual/en/domdocument.load.php&quot;&gt;load method&lt;/a&gt; incorrectly. DomDocument::Load() reads from a &lt;em&gt;file&lt;/em&gt;, not a string. You are reading from the file using fopen, and fgets. Then you are passing the content of that website (as a string) to the Load method, and Load() thinks that HTML stuff is a filename! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You should replace $doc-&amp;gt;Load($str) with $doc-&amp;gt;&lt;a href=&quot;http://www.php.net/manual/en/domdocument.loadhtml.php&quot;&gt;loadHTML&lt;/a&gt;($str). LoadHTML takes a string, not a file path.&lt;/p&gt;
 </description>
     <pubDate>Sun, 22 Nov 2009 06:11:00 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1245894 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
