SoFunction
Updated on 2025-03-06

Parse PHP calls to existing search engines


<?php
$key = $_GET['key'];
$select = $_GET['select'];
switch($select)
    {
        case "google":                          //GOOGLE
            $url = "/search?q=".$key;
            header("Location: $url");
            break;
        case "yahoo":                           //YAHOO
            $url = "/search?p=".$key;
            header("Location: $url");
            break;
case "baidu":                                                            �
            $url = "/s?wd=".$key;
            header("Location: $url");
            break;
default:                                                                                                                              �
            break;
    }
?>