Connecting Tech Pros Worldwide Forums | Help | Site Map

Re: implementing a website search feature using php

NC
Guest
 
Posts: n/a
#1: Jul 17 '08
On Jul 16, 10:51 am, Sudhakar <sudhakarar...@gmail.comwrote:
Quote:
>
i want to implement a feature where a user searches with
a keyword and search results are displayed according to
the keyword or phrase entered by the user.
Use an off-the-shelf search engine... I've used Sphider on a couple
of occasions:

http://www.sphider.eu/

Cheers,
NC

C. (http://symcbean.blogspot.com/)
Guest
 
Posts: n/a
#2: Jul 18 '08

re: Re: implementing a website search feature using php


On Jul 17, 1:39 am, NC <n...@iname.comwrote:
Quote:
On Jul 16, 10:51 am, Sudhakar <sudhakarar...@gmail.comwrote:
>
>
>
Quote:
i want to implement a feature where a user searches with
a keyword and search results are displayed according to
the keyword or phrase entered by the user.
>
Use an off-the-shelf search engine... I've used Sphider on a couple
of occasions:
>
http://www.sphider.eu/
>
Cheers,
NC
I'd recommend mnogo.

Certainly, as burgermeister01 wrote, what you propose is far from
being very efficient. You really want to index the keywords separately
from querying the data.

If its just a quick though, then a whole search engine might be
overkill - if you're running on Unix/Linux/Posix, then exec something
like:

find /document/root/ -regex '(.html)|(.php)' grep -H '$searchword' {}
\;

C.
Jerry Stuckle
Guest
 
Posts: n/a
#3: Jul 18 '08

re: Re: implementing a website search feature using php


C. (http://symcbean.blogspot.com/) wrote:
Quote:
On Jul 17, 1:39 am, NC <n...@iname.comwrote:
Quote:
>On Jul 16, 10:51 am, Sudhakar <sudhakarar...@gmail.comwrote:
>>
>>
>>
Quote:
>>i want to implement a feature where a user searches with
>>a keyword and search results are displayed according to
>>the keyword or phrase entered by the user.
>Use an off-the-shelf search engine... I've used Sphider on a couple
>of occasions:
>>
>http://www.sphider.eu/
>>
>Cheers,
>NC
>
I'd recommend mnogo.
>
Certainly, as burgermeister01 wrote, what you propose is far from
being very efficient. You really want to index the keywords separately
from querying the data.
>
If its just a quick though, then a whole search engine might be
overkill - if you're running on Unix/Linux/Posix, then exec something
like:
>
find /document/root/ -regex '(.html)|(.php)' grep -H '$searchword' {}
\;
>
C.
>
No way. You do not want to grep PHP source code for your search words.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

C. (http://symcbean.blogspot.com/)
Guest
 
Posts: n/a
#4: Jul 21 '08

re: Re: implementing a website search feature using php


On Jul 18, 1:08 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Quote:
C. (http://symcbean.blogspot.com/) wrote:
Quote:
On Jul 17, 1:39 am, NC <n...@iname.comwrote:
Quote:
On Jul 16, 10:51 am, Sudhakar <sudhakarar...@gmail.comwrote:
>
Quote:
Quote:
>i want to implement a feature where a user searches with
>a keyword and search results are displayed according to
>the keyword or phrase entered by the user.
Use an off-the-shelf search engine... I've used Sphider on a couple
of occasions:
>
Quote:
>
Quote:
Quote:
Cheers,
NC
>
Quote:
I'd recommend mnogo.
>
Quote:
Certainly, as burgermeister01 wrote, what you propose is far from
being very efficient. You really want to index the keywords separately
from querying the data.
>
Quote:
If its just a quick though, then a whole search engine might be
overkill - if you're running on Unix/Linux/Posix, then exec something
like:
>
Quote:
find /document/root/ -regex '(.html)|(.php)' grep -H '$searchword' {}
\;
>
Quote:
C.
>
No way. You do not want to grep PHP source code for your search words.
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I'd agree this is a security vulnerability - but it's explicitly what
the OP asked.

C.
Jerry Stuckle
Guest
 
Posts: n/a
#5: Jul 25 '08

re: Re: implementing a website search feature using php


C. (http://symcbean.blogspot.com/) wrote:
Quote:
On Jul 18, 1:08 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Quote:
>C. (http://symcbean.blogspot.com/) wrote:
Quote:
>>On Jul 17, 1:39 am, NC <n...@iname.comwrote:
>>>On Jul 16, 10:51 am, Sudhakar <sudhakarar...@gmail.comwrote:
>>>>i want to implement a feature where a user searches with
>>>>a keyword and search results are displayed according to
>>>>the keyword or phrase entered by the user.
>>>Use an off-the-shelf search engine... I've used Sphider on a couple
>>>of occasions:
>>>http://www.sphider.eu/
>>>Cheers,
>>>NC
>>I'd recommend mnogo.
>>Certainly, as burgermeister01 wrote, what you propose is far from
>>being very efficient. You really want to index the keywords separately
>>from querying the data.
>>If its just a quick though, then a whole search engine might be
>>overkill - if you're running on Unix/Linux/Posix, then exec something
>>like:
>>find /document/root/ -regex '(.html)|(.php)' grep -H '$searchword' {}
>>\;
>>C.
>No way. You do not want to grep PHP source code for your search words.
>>
>--
>==================
>Remove the "x" from my email address
>Jerry Stuckle
>JDS Computer Training Corp.
>jstuck...@attglobal.net
>==================
>
I'd agree this is a security vulnerability - but it's explicitly what
the OP asked.
>
C.
Without necessarily knowing what he asked for...

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Closed Thread


Similar PHP bytes