problem in retrieving pages' contents using file_get_content
Posted: Wed Oct 21, 2009 8:14 pm
Hi ,
I have to scarpe a search engine .I tried this
but it does not echo page with its contents b/c it is not in the source as well. I tried to use curl as well but the result is same.
Please help . I want to grab the title and urls of first ten retirvied results.
Thanks
Mehnaz
I have to scarpe a search engine .I tried this
Code: Select all
<?php
$hon_html_file = file_get_contents("http://www.hon.ch/HONcode/Search/search.html?cref=http%3A%2F%2Fwww.hon.ch%2FHONcode%2FSearch%2FHONcodeHunt%2Fcontextlink.xml&q=".$urlnew."&hl=en&cof=FORID%3A11#997");
echo $hon_html_file;
?>
Please help . I want to grab the title and urls of first ten retirvied results.
Thanks
Mehnaz