homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Having a search function for almost static php web site

 3:47 pm on Nov 29, 2002 (gmt 0)

I'm building a website it uses php and templates, so web pages are assembled before they are previewed (on the fly). I will like it to have search capabilities. What will be some ways to index the content and create the directories?

any help?




 4:13 pm on Nov 30, 2002 (gmt 0)

have you taken a look at sourceforge.net or other script sites?

The only search I can think of is htdig.org but that probably doesn't fit the criteria.


 4:19 pm on Nov 30, 2002 (gmt 0)

You're only recourse here is to build/download/buy a search engine that will search the db. One that I've used and found to be reasonalby good is DGS Search [digitalgenesis.com]


 4:20 pm on Nov 30, 2002 (gmt 0)

Forgive me if I'm way off here. Couldn't you query certain database fields for the keywords?

SELECT FROM db WHERE title LIKE "keyword";

Sorry if that was stupid, I'm a db newbie!


 4:22 pm on Nov 30, 2002 (gmt 0)

not stupid at all Birdman,

That would all depend on how/what you are storing.


 2:09 am on Dec 1, 2002 (gmt 0)

If your 'almost static' web site has URLs that stay the same from visit to visit for the same content, then a normal spidering search engine should work fine. I've also used Birdman's solution before, but I don't think the results are as good as I get with ht://Dig, so I'd tend to use that sort of engine anywhere it would work. It ought to be fine on an 'almost static' page, and it's very customizable.


 12:34 pm on Dec 2, 2002 (gmt 0)

thanks, for your replyes!
the problem I'm having is that most of the content won't go into a DB.... and can't use a regular filesystem search beacuse the linking system is not standard... I'll keep looking, some of the links you guys sent me may solve my problem!


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved