① 谁帮我做个 php 做的搜索引擎

搜索引擎。。。不是很困难吧。。。我想说你是个shabi

② php 分词,搜索引擎,技术

你好,很高兴为你解答:

如果你仅仅是要把长句中的单词分出来,那是很简单的:

<?php
$str="GoogleTranslateforBusiness!";
$str=preg_replace("{.|,|;|:|'|"|?|!|<|>|(|)}","",$str);//移除所有标点符号
$arr=array_unique(explode("",$str));//以空格分割,并去重
var_mp($arr);
?>

以下是一段测试文本:

(asseeninCorPerl),"something"(inthiscase,output"Hi,I'maPHPscript!").<?phpand?>"PHPmode."
-,.,.,andthenthere'.
,.Don''sfeatures.Youcanjumpin,inashorttime,.
AlthoughPHP'sdevelopmentisfocusedonserver-sidescripting,youcandomuchmorewithit.Readon,andseemoreintheWhatcanPHPdo?section,.

输出结果:

Instead,of,lots,commands,to,output,html,as,seen,in,C,or,Perl,PHP,pages,contain,with,embedded,code,that,does,something,this,case,Hi,Im,a,script,The,is,enclosed,special,start,and,end,processing,instructions,php,,allow,you,jump,into,out,modeWhat,distinguishes,from,like,client-side,javaScript,the,executed,on,server,generating,which,then,sent,client,would,receive,results,running,but,not,know,what,underlying,was,You,can,even,configure,your,web,process,all,files,theres,really,no,way,users,tell,have,up,sleeveThe,best,things,using,are,it,extremely,simple,for,newcomer,offers,many,advanced,features,professional,programmer,Dont,be,afraid,reading,long,list,PHPs,short,time,writing,scripts,few,hoursAlthough,development,focused,server-side,scripting,do,much,more,Read,see,What,section,go,right,introctory,tutorial,if,only,interested,programming

使用sort()对其进行排序:

C,Dont,HTML,Hi,Im,Instead,JavaScript,PHP,PHPs,Perl,Read,The,What,You,a,advanced,afraid,all,allow,and,are,as,be,best,but,can,case,client,client-side,code,commands,configure,contain,development,distinguishes,do,does,embedded,enclosed,end,even,executed,extremely,features,few,files,focused,for,from,generating,go,have,hoursAlthough,if,in,instructions,interested,into,introctory,is,it,jump,know,like,list,long,lots,many,modeWhat,more,much,newcomer,no,not,of,offers,on,only,or,out,output,pages,php,process,processing,professional,programmer,programming,reading,really,receive,results,right,running,script,scripting,scripts,section,see,seen,sent,server,server-side,short,simple,sleeveThe,something,special,start,tell,that,the,then,theres,things,this,time,to,tutorial,underlying,up,users,using,was,way,web,what,which,with,would,writing,you,your

-----------------------------------
如有疑问欢迎追问!
满意请点击右上方【选为满意回答】按钮么么哒 o(∩_∩)o

③ 开源 中文php搜索引擎有哪些

某目前接触到的只有lucene和coreseek了
lucene更多是用在java方面的,但是也可以和php结合起来用
coreseek和php结合使用比较好,官方文档说的很详细
君且自学自勉哇

④ 用PHP如何编写搜索引擎

大型的购物网站 太复杂 最好用 开源的 什么ecshop。。。好多 你要是自己写购物 慢慢努力吧

⑤ PHP全文索引、搜索引擎

http://wenku..com/view/40b10e63ddccda38376baf90.html这是一个网络文库的资料,如果你又账号,最好下载下来回看,应该答不错

⑥ 如何用PHP制作搜索引擎

这样抄看你做什么样的搜索,如果要做全站搜索的话,只用数据库搜索做起来会比较困难,会遇到要检索的数据存在不同的表中,甚至不同的库中,如果是全站搜索的话,建议用sphinx或者lucener,如果只是某个表内容搜索的话,sql:select * from 表名 where 列名 like '%值%' ;然后循环 mysql_fetch_array() 或 mysql_fetch_assoc() 或 mysql_fetch_object() 或 mysql_fetch_row()都取一行记录,把记录循环出来就可以了。

⑦ 关于搜索功能那个php代码,能再详细点吗

数据库(mysql):一个数据库(search),库里面一个表(title),表里面一个字段(name).
PHP页面:两个页面(index.php
search.php)
第一步.创建数据库.(目前大家应该都是用的phpmyadmin来操作数据库的吧?)
建立一个数据库.

第二步.建表
在刚建立的search数据库里插入一个名字为title的表.建表时让选插入几个字段.写1就可以了.

第三步.建字段
插入的字段命名为name,长度值20就可以了.

—–数据库部分已经做完,接下来是网页部分—–

第四步.建立两个页面
建立两个文件:index.php和search.php可以使用记事本等文本工具直接建立.我使用的工具是Dreamweaver(方便嘛.呵呵).

第五步.index.php的页面制作.
这个页面是用来传递你搜索的关键字的.代码如下:
<form method=”post”
action=”search.php”
name=”search”>
<input name=”search” type=”text” value=”"
size=”15″> <input type=”submit”
value=”Search”>
</form>
这段代码是建立一个FORM表单.专门用来提交数据的.
第一行是FORM表单的开始.它的传递方式是post,传递到search.php这个页面.表单名为name.
第二行是文本域和提交按钮.文本域命名为search,按钮默认就可以了.
第三行是FORM表单的结束语句.

第五步.search.php的页面制作.
这个页面很关键.因为他是获取index页面传递过来的值,然后导出搜索的数据.
首先要绑定你建立的search数据库,我用的DW生成的.
上一个页面传送的文本域是search.所以,这里需要建立一个search变量.来接收你输入的关键词.用以下语句定义变量:
<?php
$searchs = $_POST['search'];
?>

然后建立一个记录集,选择高级.SQL语句中填写:
SELECT *

FROM title

WHERE name like
‘%$searchs%’

这句的意思是选择title表里面的所有字段(*),然后查询name中的$searchs变量。这个变量也就是你在index中输入的值啦。

然后在BODY里面绑定一个动态文本。选择NAME。

⑧ php做搜索引擎的问题

搜索前可以用php_replace过滤掉加亮语句就可以了。

⑨ 百度搜索引擎是用PHP编写的吗

apache有一个模块叫rewriter.so
可以把请求转到.php或者jsp都行

⑩ php可以做搜索引擎吗

大部分知名网站后台都是使用PHP处理的,那是因为PHP的LAMP深得人心.
就像PHPCHINA的FANS们年度采访各大网站技术版总监说的权那样,使用LAMP是因为不用花钱,速度还可以,但是对于重要的数据使用ORACLE,那是因为,ORACLE花了大价钱,就会有大的服务,LAMP都是免费的!