调用百度的搜索结果怎么去做啊 www.baidu.com.naobingyy.com 像这个网站一样。他应该就几个页面。百度 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 直接把baidu搜索框嵌入就可以了,网上很多这样的js $key = $_GET['key']; //获得关键字 $select = $_GET['select']; //获得搜索引擎的选择 switch($select) //根据搜索引擎的不同跳转到不同的页面 { case "google": //GOOGLE $url = "http://www.google.com/search?q=".$key; header("Location: $url"); break; case "yahoo": //YAHOO $url = "http://search.yahoo.com/search?p=".$key; header("Location: $url"); break; case "baidu": //百度 $url = "http://www.baidu.com/s?wd=".$key; header("Location: $url"); break; default: //如果搜索引擎不存在,结束程序 break; } 困惑了 看看这个算法为什么这么慢。。。 在PHP里有prepared statement吗? PHP “->”是什么意思 转贴:php读取mac地址 HTTP远程下载文件 如何在IIS6配置PHP 关于cookie的问题,希望高手指点迷津,谢谢了。 菜鸟问题! php json php带参数如何按照参数来执行具体的代码。。 php中foreach循环问题
$key = $_GET['key']; //获得关键字
$select = $_GET['select']; //获得搜索引擎的选择
switch($select) //根据搜索引擎的不同跳转到不同的页面
{
case "google": //GOOGLE
$url = "http://www.google.com/search?q=".$key;
header("Location: $url");
break;
case "yahoo": //YAHOO
$url = "http://search.yahoo.com/search?p=".$key;
header("Location: $url");
break;
case "baidu": //百度
$url = "http://www.baidu.com/s?wd=".$key;
header("Location: $url");
break;
default: //如果搜索引擎不存在,结束程序
break;
}