Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Please help me

Quote Reply
Please help me
Hi there, with SQlb3 everything was OK; since i ve changed to the 1.1 my search function wont run.
When must i use the search-ni.cgi?
(I use foreign chars)

What must i have to use in search.cgi:

use Time::HiRes qw/time/;
use vars qw/$start $end $elaps/;
$start = time;

Get server-error; error-log says; cant find HiRes.pm ???

Please help me, work now for 14 hours on this damned thing ....

Robert


Quote Reply
Re: Please help me In reply to
the instructions on this one sucked Smile so read the next one..

jerry

[This message has been edited by widgetz (edited December 04, 1999).]
Quote Reply
Re: Please help me In reply to
umm.. yea Smile

i reread that code and i didn't even tell you WHERE to put it..

For other people.. this simply returns to the template the processing time of the CPU.. it is more detailed then nph-build.cgi's sorta thing cause it even gives you the seconds to the hundreths.. ex: 1.09 seconds.. if you want it to the thousanths or lower just change "%.2f" to "%.3f" etc..

all in search.cgi..

under:
Code:
use strict;

add

Code:
use vars qw/$start $end/;
$start = (times)[0];

after

Code:
next => $next,

add

Code:
elasped => (sprintf "%.2f", (times)[0]-$start),

then in search_results.html..

just put

Code:
<%elasped%>

and it will output it..

jerry
Quote Reply
Re: Please help me In reply to
What do you mean with:

.. that code isnīt even in search.cgi ...

Is it possible that i got a wrong version of Links SQL 1.1 ???

This CODE is really inside!

Robert
Quote Reply
Re: Please help me In reply to
The same error again; we changed some things behind this cols; so its clear to get the same error!

just a minute later:

have erase the code:

BEGIN {
use Time::HiRes qw/time/;
use vars qw/$start $end $elaps/;
$start = time;
}

END {
$end = time;
$elaps = sprintf ("%.4f", $end - $start);
print "Elapsed processing time: $elaps s.";
}


No more errors; but nothing found on searching.

Next: i set the index via phpadmin
-->nothing happens.

What now?

Quote Reply
Re: Please help me In reply to
if you are using search.cgi you might need to re-index the database.. you might want to set the index weight via editor.cgi

that code isn't in my search.cgi.. i believe it was from a post that i brought up in the Perl forum.. maybe alex included it after i downloaded links sql 1.1.. who knows..

but if you are on a unix and you use the way i put it.. it's better.. cause it's obvious that your server doesn't have Time/HiRes.pm installed..

jerry
Quote Reply
Re: Please help me In reply to
I have erased it and the server-error is gone; now i think the weight-index is zero, so the search couldnīt find something. But how the hell, i can change this?
I tried everything from top to bottom and return.

Robert

[This message has been edited by Robert (edited December 04, 1999).]
Quote Reply
Re: Please help me In reply to
I asked that question a few days ago:

www.gossamer-threads.com/scripts/forum/resources/Forum9/HTML/000343.html

I believe that the archive was updated at that time so new downloads don't have that code in them.

------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/









[This message has been edited by pugdog (edited December 04, 1999).]