How to open the website and search the contents of the website using php
<p>In my project i want to open the other website through my php code and search the particular content in that website and it should display,please give me a solution</p>

<p>I tried this code</p>

<pre><code> &lt;?php
    $html = file_get_html('http://keralapsc.org/notifi.htm');
    foreach($html-&gt;find('img') as $element)
    echo $element-&gt;src . '&lt;br&gt;';
    foreach($html-&gt;find('a') as $element)
    echo $element-&gt;href . '&lt;br&gt;';
 ?&gt;
</code></pre>

<p>but it shows the fatal errors.
Errors are
call to undefined function file_get_html(),
call to undefined function find(),</p>

<p>Thanks and regards</p>
