title: Extracting the value from webpage using simple html dom
body: <p>I have searched over net and found the way to extract data using simple html dom but it's giving me the following error:</p>
  
  <blockquote>
    <p>Warning:
    file_get_contents(<a href="http://www.flipkart.com/moto-g-2nd-gen/p/itme6g3wferghmv3" rel="nofollow">http://www.flipkart.com/moto-g-2nd-gen/p/itme6g3wferghmv3</a>):
    failed to open stream: HTTP request failed! HTTP/1.1 500 Server Error
    in C:\Users\Abhishek\Desktop\editor\request\simple_html_dom.php on
    line 75</p>
    
    <p>Fatal error: Call to a member function find() on boolean in
    C:\Users\Abhishek\Desktop\editor\request\main.php on line 9</p>
  </blockquote>
  
  <p>My designed php code for it is:</p>
  
  <pre><code>&lt;?php 
  
  include('simple_html_dom.php');
  
  $html = file_get_html('http://www.flipkart.com/moto-g-2nd-gen/p/itme6g3wferghmv3');
  
  
  foreach($html-&gt;find('span.selling-price.omniture-field') as $e)
      echo $e-&gt;outertext . '&lt;br&gt;';
  
  ?&gt;
  </code></pre>
  
  <p>I an new in this programming and don't have enough knowledge but is there any mistake in my program?</p>