title: Save .html file with COM "InternetExplorer.Application" object
body: <p>I try to get this page's HTML code(<a href="http://www.google.com/search?tbs=simg:CAESEgmbKK4nJ8pyZiGCp1jyKj6SXg&amp;tbm=isch" rel="nofollow noreferrer">http://www.google.com/search?tbs=simg:CAESEgmbKK4nJ8pyZiGCp1jyKj6SXg&amp;tbm=isch</a>),
  but <code>file_get_contents($url);</code> can't work on this page.</p>
  
  <p>So I think using InternetExplorer.Application is a way,
  I find a php script about website screenshots:</p>
  
  <pre><code>&lt;?php $Browser = new COM('InternetExplorer.Application');
  $Browserhandle = $Browser-&gt;HWND; $Browser-&gt;Visible = true;
  $Browser-&gt;Fullscreen = true;
  $Browser-&gt;Navigate('http://www.google.com/search?tbs=simg:CAESEgmbKK4nJ8pyZiGCp1jyKj6SXg&amp;tbm=isch');
  
  while($Browser-&gt;Busy){   com_message_pump(4000); }
  
  $img = imagegrabwindow($Browserhandle, 0); $Browser-&gt;Quit();
  imagepng($img, 'screenshot.png'); ?&gt;
  </code></pre>
  
  <p>BUT <strong>how can I save a .html file or get HTML code with "InternetExplorer.Application"?</strong></p>
  
  <p>poor English, sorry, Thank you.</p>