473,804 Members | 3,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1561
On Jul 17, 1:39 am, NC <n...@iname.com wrote:
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.com wrote:
>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*******@attgl obal.net
=============== ===

Jul 18 '08 #3
On Jul 18, 1:08 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
C. (http://symcbean.blogspot.com/) wrote:
On Jul 17, 1:39 am, NC <n...@iname.com wrote:
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...@attgl obal.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...@attg lobal.netwrote:
>C. (http://symcbean.blogspot.com/) wrote:
>>On Jul 17, 1:39 am, NC <n...@iname.com wrote:
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...@attg lobal.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*******@attgl obal.net
=============== ===
Jul 25 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1810
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, programming backend database, for them and others. But till now I havent worked on a project which could prepare me for m current project. My current project is for an organization which publishes its magazine
1
1425
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 one of the tables in my database. Currently I am using (for example) Where Column1 LIKE '%' + @Search + '%' However, this approach really misses many similiar results, or results that don't have an 's' on the end of the word, or doesn't find one...
1
1240
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 and products. What's the idea behind it? I am thinking of putting everything in database- all the contents that is. This makes it easy to search through the fields in the database. Is this the correct way? Is there a better way that you know of?...
17
2549
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 website. When I click in Google on one of these pages (not index.html or home.html), I am only linked to that one html-page and not to the website itself. Does anyone know how to fix this. Is there for example a metatag? Thanks
4
2272
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 strip is invisible when viewed inn IE/FF with some Vista machines. This has been noticed on three seperate computers. Has anyone else come across this phenomena? I would be grateful for any wisdom. The HTML can be taken from the site. The ad...
1
1491
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 follow. please advice if i am missing out any steps or i can add any step. 1. read the keyword entered by user using $search = $_POST; 2. read all the files from the root directory into a variable (as all files will be saved in the root directory)
25
2817
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 Apache on my machine. I'm a beginner and I really don't understand how to proceed. My biggest problem is how to connect to the database on remote mysql server ? Does php allow this kind of thing ? I'm interested in a web interface on my machine...
2
2859
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 message in a mobile device.With in the given view area if the whole message does not fit,we need to provide the ability for users to scroll through the entire message using pageup/pagedown or key up and key down.In our case we have the whole...
7
1981
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 help guide of an application I am working on. The help guide needs to be integrated into both a C# .NET desktop app AND a .NET based website using master pages. The requirements are that: (a) The same set of files are to be accessible through...
0
9708
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9587
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.