I have problem with PHP module for meta search engine, this module takes image results from google and send it to meta search engine as a result. But it is not working, there is a problem in PHP code witch i have no idea how to fix. <?php class image_google { function image_google() { $this->profile = array( 'site_name' => 'Google', 'site_url' => 'http://www.google.com', 'request_url' => 'http://www.google.com/search?q=$e_qry_str&site=images&tab=wi&start='.(20*($_REQUEST['d']-1)), ); } function parse_results(&$output) { #echo $output; # debug $results = array(); if(preg_match_all('{imgurl=(.*?)&imgrefurl=(.*?)&}is',html_compress(remove_code($output)),$matches,PREG_SET_ORDER)) { $last_match = ''; foreach($matches as $r) { $result = array( 'real_url' => html_decode($r[2]), 'follow_url' => html_decode($r[1]), 'image_url' => html_decode($r[1]), 'title' => html_decode($r[1]), 'description' => html_decode($r[1]), ); array_push($results,$result); $last_match = &$r[0]; } if($last_match) { $offset = strpos($output,$last_match)+strlen($last_match); $output = substr($output,$offset); } } #var_export($results); # debug return $results; } } ?> PHP:
Lack of information makes it impossible for us to help you. Where can we find this module ? What do you mean by it is not working ?
http://googleov.com/search?qry_str=images&category=images&submit=Search this is how images results are shown http://googleov.com/search?qry_str=images&category=videos&submit=Search and this is how images search should show results If somebody wants i can email entire PHP code, just contact me at googlov@googleov.com