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.
Simple PHP Dom parser
// php.net/manual/en/book.curl.php
// simplehtmldom.sourceforge.net
<form method="get" action="url_look.php">
<input type="text" name="keywords"/>
<input type="submit" value="submit"/>
</form>
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>";