在您的网站上获取其他网站的搜索引擎

How do i fetch search engine of other website and also result of that website on my own using HTMLdom API. Answer will be appreciated

combining two techniques you can achieve your goal.

  1. CURL
  2. Simple PHP Dom parser

    // php.net/manual/en/book.curl.php

    // simplehtmldom.sourceforge.net

1. Form.html

 <form method="get" action="url_look.php">
 <input type="text" name="keywords"/>
 <input type="submit"  value="submit"/>
 </form>

2. url_look.php

require_once('uploads/simple_html_dom.php');
$keywords = str_replace(" ","-",$_GET['keywords']);
$url =  "http://www.banggood.com/search/$keywords.html";
$html = file_get_html($url);
echo "<ul>";
foreach($html->find('span[class=title]') as $product_title){
//for more details visit http://simplehtmldom.sourceforge.net/manual.html
echo "<li>".$product_title."</li>";
}
echo "</ul>";