Internal Site Search Script?

Discussion in 'Programming' started by Rezo, Sep 14, 2007.

  1. #1
    hey,

    I would need an internal site search script.

    For example, there is search box, the user places the keyphrase/keyword and it returns a page that has links to all pages that contain this keyword/keyphrase.

    Does anyone know where can I get such a script?
     
    Rezo, Sep 14, 2007 IP
  2. HypertextFever

    HypertextFever Peon

    Messages:
    158
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    HypertextFever, Sep 14, 2007 IP
  3. litebulb1

    litebulb1 Peon

    Messages:
    151
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can also add a google search box that just searches your site.
     
    litebulb1, Sep 14, 2007 IP
  4. HypertextFever

    HypertextFever Peon

    Messages:
    158
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The only problem with Google site search is that you have to depend on Google's index... which isn't necessarily bad, but it won't be instantly updated.

    :)
     
    HypertextFever, Sep 14, 2007 IP
  5. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Write one! In the mean time check out my AJAX search script at www.coffeesh0p.com - try entering the terms "salvia" or "seeds" for example.

    Is it me, or are webmasters getting lasier and lasier?
     
    Synchronium, Sep 14, 2007 IP
  6. HypertextFever

    HypertextFever Peon

    Messages:
    158
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    
    $sp = correct_spelling('lasier');
    echo "We're getting $sp, but smarter. Work smart, not hard. Why re-invent the wheel? You are what you eat. (Wait... nvm)";
    
    PHP:
    We're getting lazier, but smarter. Work smart, not hard. Why re-invent the wheel? You are what you eat. (Wait... nvm)
     
    HypertextFever, Sep 14, 2007 IP
  7. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #7
    
    <?php
    
    $aChar = array (89,111,117,39,114,101,32,102,117,110,110,121);
    $sOutput = '';
    
    foreach ( $aChar as $iChar ) {
    	$sOutput .= chr( $iChar );
    }
    
    echo $sOutput;
    
    ?>
    
    Code (php):
     
    Synchronium, Sep 14, 2007 IP
  8. HypertextFever

    HypertextFever Peon

    Messages:
    158
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks lol, people say I should be a comedian :D
     
    HypertextFever, Sep 14, 2007 IP
  9. johngodfrey122

    johngodfrey122 Peon

    Messages:
    115
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    is all of your content db'ed?

    makes it much easier.
     
    johngodfrey122, Sep 14, 2007 IP
  10. Rezo

    Rezo Well-Known Member

    Messages:
    4,183
    Likes Received:
    158
    Best Answers:
    0
    Trophy Points:
    135
    #10
    Nope, static html pages.
     
    Rezo, Sep 15, 2007 IP
  11. HypertextFever

    HypertextFever Peon

    Messages:
    158
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    HypertextFever, Sep 15, 2007 IP
  12. Rezo

    Rezo Well-Known Member

    Messages:
    4,183
    Likes Received:
    158
    Best Answers:
    0
    Trophy Points:
    135
    #12
    Rezo, Sep 15, 2007 IP