OpenBSD Journal

Search Tools for Websites

Contributed by jose on from the local-digging dept.

A couple of month's ago Onlamp ran a small piece in their PHP section which looks like an interesting recipe. The author describes how to set up a PHP based local search engine for websites. This can be useful if you've built a large website and want people to be able to access the archives easily.

Another neat article covers one time URL generation using PHP. Useful when you have a distributed file you don't want to make entirely public, but you do want to make it available after some conditions have been met.

Pretty neat for all of you web folks out there, something you can add to your bag of tricks.

(Comments are closed)


Comments
  1. By Anonymous Coward () on

    how would these search functions compare to that of ht://dig? I'm talking about functionality, ease of use, user interface, etc...

    Comments
    1. By Anonymous Coward () on

      php ? why would someone want to infest a nice secure openBSD server with that?

      Comments
      1. By Anonymous Coward () on

        What would you do with only static pages ?
        Please come back in real life ...

        Comments
        1. By Anonymous Coward () on

          No, you don't understand.
          OpenBSD is meant for security. That means that you are not suppose to add software or services to a box. Please don't turn it on, or even add the operating system in the first place! Just leave the harddisk blank and put the CDROM set in the safe. Security comes first, purpose comes second.

          Comments
          1. By Anonymous Coward () on

            Trolls shouldn't ever get out of their cages too. Sadly they often do :(

            Comments
            1. By Anonymous Coward () on

              Just imagine where we would be without trolls. Nothing would ever get said... all of us lurkers out here would have nothing to surf through any more! ;)

              Comments
              1. By Anonymous Coward () on

                Now imagine a world without trolls or lurkers... a sad image indeed ;-)

                Comments
                1. By Anonymous Coward () on

                  Without trolls, then there'd be no slashdot.

                  Comments
                  1. By Anonymous Coward () on

                    without slashdot there would be no deadly.org

                    Comments
                    1. By zil0g () on

                      blah blah blah blah - 9 replies and no answer *pats himself on the head*

                      Comments
                      1. By Anonymous Coward () on

                        10 :-)

    2. By htdigger () on

      ht://dig is pretty cool, but it is showing it's age. It's really quite a pain to customize the results and it's not the fastest thing on the block.

      Every small to middling web site I've worked on has eventually abandoned it in favour of something else.

      A modern search tool should run off a set of indexed search items, if you ask me. PHP is a natural for this kind of job, and without CGI.

  2. By tim () n/a on mailto:n/a

    >Since one of the rules of the intranet was that all logic code should be written in-house, using an existing open source engine was not an option.

    Look ma, I re-invented the wheel!

Latest Articles

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]