Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Best Way To Code Searching for Individual Pages on a Site in PHP

Discussion in 'Scripts and Coding' started by accelerator, Jul 25, 2015.

Thread Status:
Not open for further replies.
  1. accelerator United Kingdom

    accelerator Well-Known Member

    Joined:
    Apr 2005
    Posts:
    7,435
    Likes Received:
    115
    Hi Guys

    If I have a large site where I want to create a search that will allow users to search for pages, what is the best way to do this in PHP. E.g. a user is looking for a page on Dishwashers, so I want it to return pages related to dishwashers.

    Is it best to put all my page names in a database, or is there an easier way? I guess I could either index my whole site and use a search engine type search to return results, or I could create a custom database of my page names. Let me know what you think works best.

    Many thanks
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    IWA Meetup
     
  3. Edwin

    Edwin Well-Known Member

    Joined:
    Apr 2005
    Posts:
    9,851
    Likes Received:
    617
  4. accelerator United Kingdom

    accelerator Well-Known Member

    Joined:
    Apr 2005
    Posts:
    7,435
    Likes Received:
    115
    Thanks Edwin, that is a strong option. I've used this before on one of my sites and it is a nice solution.
     
Thread Status:
Not open for further replies.