"; if(isset( $_GET['q'])) { // if there's a search query, show the results for it $query = urlencode($_GET["q"]); $show_results = TRUE; $search_url = "https://html.duckduckgo.com/html?q=" . $query; if(!$results_html = file_get_contents($search_url)) { $error_text .= "Failed to get results, sorry :(
"; } $simple_results=$results_html; //$simple_results= strip_tags($results_html, '