喜悦国际村 - 今天不小心看到了百度的一些源代码 -

来源:百度文库 编辑:神马文学网 时间:2024/04/27 00:18:43
喜悦国际村 >技术论坛 >php编程 > 今天不小心看到了百度的一些源代码
 上一主题  下一主题
作者内容  

philip
中级会员


注册日期: Jun 2003
来自:
发帖数: 218
今天不小心看到了百度的一些源代码
今天不小心看到了百度的一些源代码
可惜好像没什么关键性的东西
php
include ( "./lib/show.lib.php" );
include ( "./lib/net.lib.php" );
$tn - trim($tn);
#$title = "查询相关关键词";
print head ( $title );
print css ();
#if ( isset($submit) ){
if ( ( $fp = rsockopen("RS") ) <= 0 ) {
print toppage($q,$tn); //show the top page content
print noresult($q);
exit;
}
$rswords = rsquery( $fp, $q, 100 );
if ( !$rswords[100]["num"] ) {
print toppage($q,$tn); //show the top page content
print noresult($q); //bottom page content
exit;
}
$base = $rswords[100]["times"] + 1;
foreach( $rswords as $name => $value ) {
if ( $name == 0 && $value["word"] ) {
print toppage($q,$tn); //show the top page content
print tophit($q); //show the top hit content
print "";
print "";
print "";
print "";
}
elseif ( $name == 0 ) {
print toppage($q,$tn); //show the top page content
print noresult($q); //bottom page content
exit;
}
if ( $value["word"] ) {
$img_width = $value["times"] > $base ? 150 : $value["times"] * 150 / $base;
print "";
$tn=trim($tn);
if (($tn=="baidu") || ($tn=="baiducb") || ($tn=="baiducb1") || ($tn=="baiducb2") || ($tn=="baiducb3") || ($tn=="baiducb4") || ($tn=="baiducb5") || ($tn=="baiducb6") || ($tn=="baidun") || ($tn=="baiduos") || ($tn=="baidus") || ($tn=="baidusite") || ($tn=="baidusp") || ($tn=="baidusy") || ($tn=="baidutb") || ($tn=="debug") || ($tn=="game") || ($tn=="gamedemo")) {
print "";
}
else {
print "";
}
print "";
if ( $name % 10 == 0 ) {
print "
关键字被搜索次数
".($name + 1).". ".$value["word"]."".$value["word"]."";
print "
";
}
}
}
#}
/*
if($big5version == true) {
$big5content = ob_get_contents();
$big5content = implode("", explode("", $big5content));
$str = gb2big5($big5content);
ob_end_clean();
echo $str;
}
*/
print "
";
print bottompage(); //bottom page content


向版主反映这个帖子 | IP:已记录
07-21-05 20:42              喜悦背单词[superbig] elliptical // a.椭圆的;省略的

phphp
中级会员


注册日期: Jul 2005
来自:
发帖数: 292

这是的吗?
PHP技术群:12786872


向版主反映这个帖子 | IP:已记录
07-21-05 20:51           喜悦背单词[superbig] sophomore // n.(大学)二年级学生

jade520
中级会员

注册日期: May 2004
来自: 河南 郑州
发帖数: 263

就这么多么呀,是他们服务出错看到的吗?
共同学习、共同进步、每天进步百分之一


向版主反映这个帖子 | IP:已记录
07-21-05 20:57           喜悦背单词[superbig] permissive // adj.允许的,许可的

奶瓶
中级会员


注册日期: Nov 2004
来自: 沈阳
发帖数: 287

去年好像在csdn上有人发过
奶瓶是好小孩


向版主反映这个帖子 | IP:已记录
07-21-05 21:56             

zg820
初级会员


注册日期: May 2005
来自:
发帖数: 10

百度是PHP的啊....


向版主反映这个帖子 | IP:已记录
07-21-05 22:51        

crazysoul
一般会员

注册日期: Jun 2005
来自:
发帖数: 31

我也不小心看到了SOHU的一些源代码
可惜好像也没什么关键性的东西
$SERVER_ROOT="/ITC/it/newdownload/";
$SERVER_URL="http://act1.it.sohu.com/";
$URL="http://act1.it.sohu.com/";
$PICPATH="dbfile/article/";
$PICURL="newdownload/dbfile/article/";
$MYSQL_HOST = ‘192.168.132.33‘;
$MYSQL_USER = ‘content‘;
$MYSQL_PASSWORD = ‘********‘;
$mysql = mysql_connect($MYSQL_HOST,$MYSQL_USER,$MYSQL_PASSWORD);
mysql_select_db(‘software‘,$mysql);
?>


向版主反映这个帖子 | IP:已记录
07-21-05 22:57      

cucued
高级会员


注册日期: Aug 2001
来自: 北京。东城。
发帖数: 1016

楼上的关键性的东西也太少了,好歹让我们看看他用没用数据库类呀。
其实我是幸福的,我有让我痴情一生的OXY;有永远与我心心相通的WENDY;有一段痛苦却让我获益匪浅的经历关于MAGGIE;我还有一个愿望,就是能与一位画画或者当老师的姑娘结为伉俪。
无论怎样,顺其自然
PHP代码:
$life=mt_rand(‘born‘,‘dead‘).mt_rand(‘happy‘,‘sad‘);


向版主反映这个帖子 | IP:已记录
07-22-05 06:41        

abbish
高级会员


注册日期: Feb 2003
来自: 北京
发帖数: 2143

呵呵~~ 我也看打了些陶宝的源代码,也没什么关键东西
PHP代码:
a Bu Bu Ia Su ho
---------------------------
仿Google的分页样式和分页内核
http://www.phpx.com/happy/top103804.html


向版主反映这个帖子 | IP:已记录
07-22-05 09:03          

jerryfleming
中级会员


注册日期: Nov 2003
来自: 上海
发帖数: 216

一个惊人的发现:百度的网页快照居然是用teleport pro下载的。我以为是什么高深的技术呢。我宁愿使用wget下载
晋远(GeoFuture)是一个免费自由的信息港湾,您可以在这里发布广告信息,求职招聘,学习心得,生活服务等,或者加入任何社区并参与话题的讨论。不管是个人还是公司,您都可以在这里建立自己的网上家园。


向版主反映这个帖子 | IP:已记录
07-22-05 12:11          

philip
中级会员


注册日期: Jun 2003
来自:
发帖数: 218

teleport pro不是一个在win下跑的东西吗?怎么回师


_xyz