Problem with phpLD search

Discussion in 'Programming' started by Nima, Dec 29, 2008.

  1. #1
    the search engine function on this directory is not working?

    Does anyone know what could cause it?

    Thanks
     
    Nima, Dec 29, 2008 IP
  2. naif

    naif Well-Known Member

    Messages:
    469
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    118
    As Seller:
    100% - 0
    As Buyer:
    100% - 2
    #2
    Open file /search.php and find the following line of code:

    
    $pattern = array ( '/(AND[\s])+/', '/(OR[\s])+/', '/\s+/', '/`+/', '`^[^\w\d]`', '`[^`\w\d]$`' );
    
    Code (markup):
    Replace it with

    
    $pattern = array ( '#(AND[\s])+#i', '#(OR[\s])+#i', '#[\s]+#', '#[`]+#', '#^[^\w\d]#i', '#[^`\w\d]$#i' );  
    
    Code (markup):
    Your host probably upgraded their version of PHP recently.
     
    naif, Dec 31, 2008 IP
    Nima likes this.
  3. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    thank you.
     
    Nima, Jan 1, 2009 IP