473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Re: implementing a website search feature using php

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
4 1549
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lovely Angel | last post by:
Dear Friends Hope you all doing great First, thanks for making life easier for me, by helping me whenever I needed you. Its been quite sometime that I have worked on websites, designing them,...
1
by: DDK | last post by:
I am looking to create a better search in C#, Asp.Net and Sql Server 2000. Is there any books or websites out there that talk about this. I don't need to search the entire site, just a column in...
1
by: crescent_au | last post by:
Hi all, I am building a website for an employer. They want to have a search utility in it. I don't need a very complicated search utility. Something simple which just searches through contents...
17
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= | last post by:
Hello, I have build a website with approximately 30 html-pages. When I search this website in Google, I see the index.html or home.html on this website, but also other html-pages on this...
4
by: sharkyboy | last post by:
Hi, I am slightly confused. On our website www.the-ark.net there is a an advert strip down the right hand side. When viewed with IE or FF with windows XP the ad strip is visible. However the ad...
1
by: runway27 | last post by:
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. following are the steps i want to...
25
by: pereges | last post by:
Hello, I'm trying to build a database driven website for a library management system. The database is stored on a remote server which all of my team mates can access. I've installed MySQL, PHP and...
2
by: ssubbarayan | last post by:
Dear all, I am in the process of implementing pageup/pagedown feature in our consumer electronics project.The idea is to provide feature to the customers to that similar to viewing a single sms...
7
nukefusion
by: nukefusion | last post by:
Hi all, I'm trying to think of the best way to achieve a certain goal and thought I would draw on the experience here. What I am currently doing is compiling a set of HTML files that form the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.