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

Re: Recurring to a secondary search script

Quote Reply
Re: Recurring to a secondary search script In reply to
If it's your script, the easiest thing would be to actually incorporate it into the search.cgi -- such that if the links search failed, you ran the "default_search" sub routine, which would be this script.

The reason for that is you would not have to worry about browser connects, etc. and the user would get the output in their screen.

You could wrap the output in a Links page the way the "error" subroutine does. (It just puts a variable into the middle of the content area of a template.)

You'd need to make sure you initialized and declared all the variables in the other search script, so that it was mod_perl compatible, but that shouldn't be too hard. The error log will tell you where the errors are, just start with the first one, fix it, and keep running the program til it runs error free <G>

I don't know if there are problems with running a script from inside another script and returning the information from that script to the browser --- I know you can return it to the calling program, which then sends it to the browser --- which is why I suggest the simple ways above.

Subject Author Views Date
Thread Recurring to a secondary search script ekaram 1794 Mar 24, 2000, 7:20 PM
Post Re: Recurring to a secondary search script
pugdog 1730 Mar 24, 2000, 10:47 PM
Post Re: Recurring to a secondary search script
ekaram 1744 Mar 25, 2000, 6:10 AM
Post Re: Recurring to a secondary search script
pugdog 1730 Mar 25, 2000, 6:26 AM