By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,730 Members | 1,540 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,730 IT Pros & Developers. It's quick & easy.

Re: implementing a website search feature using php

P: n/a
NC
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
Jul 17 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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.
Jul 18 '08 #2

P: n/a
C. (http://symcbean.blogspot.com/) wrote:
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.
js*******@attglobal.net
==================

Jul 18 '08 #3

P: n/a
On Jul 18, 1:08 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
C. (http://symcbean.blogspot.com/) wrote:
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.
Jul 21 '08 #4

P: n/a
C. (http://symcbean.blogspot.com/) wrote:
On Jul 18, 1:08 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>C. (http://symcbean.blogspot.com/) wrote:
>>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.
js*******@attglobal.net
==================
Jul 25 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.