Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-15-2005, 06:57 PM   #1 (permalink)
 
Junior Techie

Join Date: May 2004

Posts: 60

thewolfe

Default search engine script

search engine script

I'm looking for a search engine script that I can add to my web site so others can search through my site.

Any ideas?
thewolfe is offline  
Old 03-16-2005, 12:18 AM   #2 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default

If Google has crawled your site, you can put a form on your site that takes a keyword and plugs it into http://www.google.com/search?q=keywo...rsite.com&l=en
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 03-16-2005, 12:23 AM   #3 (permalink)
 
True Techie

Join Date: Sep 2004

Posts: 110

Terencentanio

Send a message via AIM to Terencentanio Send a message via Yahoo to Terencentanio
Default

If the site has a database which holds the content, you could easily write one. SQL:

SELECT * FROM table WHERE content = '%search%';

Or something along those lines Otherwise, you'd probably need to write a Perl/Python/Other bot to crawl and store the info in a DB, then do something similar. Or just do as Emily said, but there's no fun in using Google now, is there?
__________________
* Your high priced security consultant\'s plane ticket: $1500
* Your high priced security consultant\'s time: $200/hour
* RealSecure nodes all over your company: $200,000
* Getting owned by 0day: Priceless
Terencentanio is offline  
Old 03-22-2005, 02:18 PM   #4 (permalink)
 
Junior Techie

Join Date: Mar 2005

Posts: 50

c0mplexity

Default

Terencentanio is quite right...
c0mplexity is offline  
Old 03-27-2005, 10:18 PM   #5 (permalink)
 
Newb Techie

Join Date: Mar 2005

Posts: 20

REDtoLINE

Send a message via AIM to REDtoLINE Send a message via Yahoo to REDtoLINE
Default

Quote:
Originally posted by Terencentanio
If the site has a database which holds the content, you could easily write one. SQL:

SELECT * FROM table WHERE content = '%search%';

Or something along those lines Otherwise, you'd probably need to write a Perl/Python/Other bot to crawl and store the info in a DB, then do something similar. Or just do as Emily said, but there's no fun in using Google now, is there?
you actually typed that query wrong, it would actually be,

SELECT * FROM table WERE content LIKE '%search%'

and % means wildcard, so AsearchA will match, but if u put 'search%', then it would not work, but seachA would, you get it...
REDtoLINE is offline  
Old 03-27-2005, 10:53 PM   #6 (permalink)
 
True Techie

Join Date: Sep 2004

Posts: 110

Terencentanio

Send a message via AIM to Terencentanio Send a message via Yahoo to Terencentanio
Default

Lmao. I was missing 1 word. Shoot me. And you may wanna chech some examples of PHP search engines and maybe an SQL manual.
__________________
* Your high priced security consultant\'s plane ticket: $1500
* Your high priced security consultant\'s time: $200/hour
* RealSecure nodes all over your company: $200,000
* Getting owned by 0day: Priceless
Terencentanio is offline  
Old 03-28-2005, 04:09 AM   #7 (permalink)
 
Newb Techie

Join Date: Mar 2005

Posts: 20

REDtoLINE

Send a message via AIM to REDtoLINE Send a message via Yahoo to REDtoLINE
Default

Quote:
Originally posted by Terencentanio
Lmao. I was missing 1 word. Shoot me. And you may wanna chech some examples of PHP search engines and maybe an SQL manual.
well that 1 word was the difference between having a seach script, or just finding something where the content is only the word %search%
REDtoLINE is offline  
Old 03-30-2005, 06:02 AM   #8 (permalink)
 
True Techie

Join Date: Sep 2004

Posts: 110

Terencentanio

Send a message via AIM to Terencentanio Send a message via Yahoo to Terencentanio
Default

Yes. Then, we move into this phase us programmers like to call "debugging" - ever hear about it?
__________________
* Your high priced security consultant\'s plane ticket: $1500
* Your high priced security consultant\'s time: $200/hour
* RealSecure nodes all over your company: $200,000
* Getting owned by 0day: Priceless
Terencentanio is offline  
 
Closed Thread

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
Trackbacks are On
Pingbacks are On
Refbacks are On