Why reinvent the wheel? Use htdig or one of the other open source search
engines. There's a memo on the htdgi site on integrating PHP and htdig.
Miles Thompson
At 02:26 PM 7/12/01 +0200, void wrote:
>I am thinking of building a search engine with the grep command for our
>site.
>i have my information in a mysql db,
>but i am putting it back into text files.
>reoson being is that maybe the mysql db goes down under hevy load,
>and then our site would look like a tree with out branches.
>So i put all the info in the text files.
>
>now for the search engine i have a form that posts of the pattern.
>on the page receiving this pattern as say $searchpattern
>i do the command
>grep --binary-files=without-match -lri "$searchpattern" $path
>
>is this too resource intensive ?
>
>How does this idea sound ?
>
>please let me know.
>thanx in advance for any replies.
>
>Cape Town South Africa
>
>
>
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]