Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 27th, 2005, 10:58 AM   #1
oracus
Newbie
 
Join Date: Sep 2005
Posts: 2
Rep Power: 0 oracus is on a distinguished road
How can i make a search engine on my site easily?

I am a new in web design and programming, do you know how i can find a easy way to make a search engine on my site? Please help me
oracus is offline   Reply With Quote
Old Sep 27th, 2005, 11:09 AM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
hey, no need to break a sweat over it :-) just use google :-)

<form method="get" action="http://www.google.com/search">

<input type="text"   name="q" size="31"
 maxlength="255" value="" />
<input type="submit" value="Google Search" />
<input type="radio"  name="sitesearch" value="" />
 The Web
<input type="radio"  name="sitesearch"
 value="yoursite.com" checked />Search This Site

</form>


And ther you have it, the power of google to search your site.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Sep 27th, 2005, 11:15 AM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Pizentios, keep that handy in case I get off my lazy azz and work on the PHP FAQ some more. That's a great snippet.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Sep 27th, 2005, 12:44 PM   #4
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
I agree, just pasted into my code directory... going to revamp my site soon.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Sep 27th, 2005, 12:55 PM   #5
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
I have heard of a software called Search Engine Builder Professional available for a trial period. May be that wud help you.

What it does is, based on certain algorithms, it tries to develop a index with keywords and appropriate pages for those keywords.
Try it out...much of it is javascript code that runs into many files (If I am recollecting it properly :-? )
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Sep 28th, 2005, 1:31 AM   #6
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
piz beat me to it. yeah back when i was beginning in javascript there was a tutorial snippet on using google. basically, you're taking the input from a textbox and appending it onto the other crap that google shows in the url box when you search or something of that nature. then you can go to google, right-click on the main picture, save it, resize it, and put it next to your own search box. snazzy for 5 minutes or work.

edit: his way was a bit more succint, and more comprehensive as far as search options.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Sep 28th, 2005, 10:18 AM   #7
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Quote:
I have heard of a software called Search Engine Builder Professional available for a trial period. May be that wud help you.

What it does is, based on certain algorithms, it tries to develop a index with keywords and appropriate pages for those keywords.
Try it out...much of it is javascript code that runs into many files (If I am recollecting it properly :-? )
Not sure if those programs are really even worth it, since technically, if you wanted to build your own search engine with php and your page was fully dynamic (ie all text content comes from the database), all you'd have to do is have a select statment something like this:

SELECT * FROM mytable WHERE my_content LIKE '%My KeyWord%' OR my_content LIKE '%some otherkeyword%';

you could have as many OR statments as you wanted. Ofcourse it would depend on how you had your db setup. You have to have the page name or something to identify what page the content is coming from so you could provide links in a search result page.

The best part about the first code that i posted, is that it's pure html. clean and simple and you get the power of google.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!

Last edited by Pizentios; Sep 28th, 2005 at 10:36 AM.
Pizentios is offline   Reply With Quote
Old Sep 28th, 2005, 4:48 PM   #8
oracus
Newbie
 
Join Date: Sep 2005
Posts: 2
Rep Power: 0 oracus is on a distinguished road
Thanks guys..
Pizentios thats google search is really cool but id rather a serach engine without the google logo. But i the only really easy solution :-))
oracus is offline   Reply With Quote
Old Sep 30th, 2005, 3:01 AM   #9
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 403
Rep Power: 3 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Oracus, I'll refer you to the thread I started about how I made a search engine for my website. PHP Search Engine Script . The only difference here is that in the database, you'd only have your site available for searching, and you'd have to create the keywords, descriptions, title, and URLs for each of the pages on your particular site. The code is all provided there on the thread for you so it doesn't get much easier than that I think, but if you need further help just write on what you saw at my thread and I'll gladly answer back.

Hope that helps.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:44 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC