How could I get the total result of search engine query and display it in my site?
For example for keyword service technician I want to display the total result, but not displaying the search result only the number.
hi! I am not sure how to do something like that with php... but I am sure this depends on the search engine. I did something like that with Google and Java (for this you can download the free Google API), where you can not only get the number of results, but nearly everything you like from the results..
Thanks for the reply.. where to download the said API? Could you please provide for me thanks
http://www.google.com/apis/index.html
I thanks.. but what I want is just count the actual search result.
I have a code here that will open the google SERP.
$filename = "http://search.yahoo.com/search?_adv_prop=web&x=op&ei=UTF-8". "&prev_vm=p&va=$query&va_vt=any&vp=&vp_vt=any&vo=&vo_vt=any". "&ve=&ve_vt=any&vd=all&vst=0&vs=&vf=all&vm=p". "&vc=&fl=0&n={$hits_per_page}&b=$page_var"; $file = fopen($filename, "r"); if (!$file) { echo "<p>Unable to open remote file $filename.\n"; } else {
$filename = "http://search.yahoo.com/search?_adv_prop=web&x=op&ei=UTF-8". "&prev_vm=p&va=$query&va_vt=any&vp=&vp_vt=any&vo=&vo_vt=any". "&ve=&ve_vt=any&vd=all&vst=0&vs=&vf=all&vm=p". "&vc=&fl=0&n={$hits_per_page}&b=$page_var";
$file = fopen($filename, "r"); if (!$file) { echo "<p>Unable to open remote file $filename.\n"; } else {
How could I get the total row stored in the file with out using looping command.