Gossamer Forum
Home : Products : DBMan : Discussions :

Re: [lookerjdc] Search tracking

Quote Reply
Re: [lookerjdc] Search tracking In reply to
I do have this working for the DBMan FAQ so I'm not sure anything is wrong with the coding.

Do you set to the correct path to perl for your server:

#!/usr/local/bin/perl5

You also need to insert your body tags in the code such as:

print "<insert body tag here><center>\n";

should look something like this:

print "<BODY BGCOLOR="#FFFFFF" TEXT="#110000" LINK="#3333FF" VLINK="#23238E" ALINK="#000000">\n";

If you add the keywords.txt file in a file one directory up from your dbman files then in the following line use the full PATH (not url) to the .txt file:

open (DB, "keywords.txt") or die $!;

Perhaps for some reason it's not able to write to the file, if for instance you have this within your cgi-bin directory.

Did you try setting the keywords.txt file to 666?

If you view the file using FTP is it remaining empty?

I'm really not sure it's not working for you. There is nothing wrong with the coding.

In your db.cgi file did you make the change in sub query? It would look like this:

# First thing we do is find out what we are searching for. We build a list of fields we want to search on in @search_fields.
if ($in{'keyword'}) { # If this is a keyword search, we are searching the same
&track_kwords; ## Log Table-izer
$i = 0; # thing in all fields.

There are built-in errors messages, are you getting any error messages when you perform searches? It would warn it that it can't write to the file.

Just for the heck of it in your .cfg file move the line:

$db_debug = 0;

to above the section: # File and URL's

and turn on debugging to see if you get any error messages.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/

Last edited by:

LoisC: Oct 19, 2002, 8:44 AM
Subject Author Views Date
Thread Search tracking lookerjdc 6994 Oct 17, 2002, 7:03 PM
Thread Re: [lookerjdc] Search tracking
LoisC 6842 Oct 17, 2002, 7:22 PM
Thread Re: [LoisC] Search tracking
lookerjdc 6870 Oct 17, 2002, 7:35 PM
Thread Re: [lookerjdc] Search tracking
LoisC 6843 Oct 17, 2002, 7:52 PM
Thread Re: [LoisC] Search tracking
lookerjdc 6869 Oct 17, 2002, 9:31 PM
Thread Re: [lookerjdc] Search tracking
LoisC 6826 Oct 18, 2002, 10:37 AM
Thread Re: [LoisC] Search tracking
lookerjdc 6821 Oct 18, 2002, 11:43 AM
Thread Re: [lookerjdc] Search tracking
LoisC 6822 Oct 18, 2002, 1:07 PM
Thread Re: [LoisC] Search tracking
lookerjdc 6847 Oct 18, 2002, 3:16 PM
Thread Re: [lookerjdc] Search tracking
LoisC 6825 Oct 18, 2002, 6:20 PM
Thread Re: [LoisC] Search tracking
lookerjdc 6817 Oct 18, 2002, 7:58 PM
Thread Re: [lookerjdc] Search tracking
LoisC 6822 Oct 19, 2002, 8:48 AM
Post Re: [LoisC] Search tracking
LoisC 6808 Oct 19, 2002, 9:16 AM