Jump to content

Help and advice for a PHP search facility


barrycorrigan

Recommended Posts

Hi Everyone,

 

This site is always good for a bit of help and advice. I'm new to PHP and I am looking for some advice for the best way to get a PHP search on my client's website.

 

I know there are some software packages out there at the minute e.g.

 

http://www.sphider.eu/

http://www.wrensoft.com/zoom/index.html

 

Basically What should I do, Should I go with one of these (maybe you know a better piece of software). Are there any good tutorials out there to code my own.

 

Any Help would be great.

 

Regards

 

Barry

Link to comment
Share on other sites

There's a few ways to do that then. One is to create a db table that stores page file names and keywords that relate to the content. You could even store the actual content for a more comprehensive search.

 

Other than that youll have to read the page files and look for the search term, you would need to exclude any php code whilst searching each page.

Link to comment
Share on other sites

Somehow, some people already do that and everyone knows them : google.

 

In other words, if your pages are plain old static html that look the same on every load, you can simply insert a google search widget in your website and be done ;)

 

GL.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.