[SM-Discuss] Browsers with built in search
martin at lddd.org
Tue Jun 17 11:43:54 EDT 2003
On Tue, 17 Jun 2003 15:47:20 +0200
Martin Ruderer <martin at lddd.org> wrote:
> On Mon, 16 Jun 2003 23:51:13 -0500
> Zach Hobbs <zach-list at firstwavedesign.com> wrote:
> > If you use a browser with a built in search tool on the top I've put
> > up a little PHP file that will redirect you to the website for a
> > spell you pass to it. I use it so that you can type in a spell in
> > the box and it will go to that spell's website. Figure some of you
> > guys might find it usefull sometimes.
OK, that one should work just as yours.
Tested with opera and firebird.
$ tcpserver 127.0.0.1 80 bash test
spell=$(echo $request | perl -ple'($_)=m|/\?([^\s]+)|')
[ ! $spelldir ] && echo "no such spell \"$spell\"" && exit 1
echo "HTTP/1.0 302 Moved Temporarily"
echo "Location: $WEB_SITE"
More information about the SM-Discuss