1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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?
    SEMrush
    Thanks
     
    Nima, Dec 29, 2008 IP
    SEMrush
  2. naif

    naif Well-Known Member

    Messages:
    466
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    108
    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