Perlfect Solutions
 

[Perlfect-search] highlight matches + PHP + ?-suffix

Michael Spiess perlfect-search@perlfect.com
Mon, 24 Mar 2003 13:33:30 +0100
Hi!

Thank you Daniel, PHP-wrapper and "exclude" is now working properly.

But with the new version 3.31b the "highlight match" is not any more
displayed for the URLs who have a ?-suffix e.g. /dir/myfile.php?navid=1

My conf.pl:
....
$HIGHLIGHT_MATCHES = 1;
@HIGHLIGHT_EXT = ("html", "htm","php");
....

My search.pl:
....
my $highlight_link = "";
    if( $HIGHLIGHT_MATCHES && isHTML($url) && $HIGHLIGHT_TERMS{$lang} )
{    # TODO: solve this better...
      $highlight_link = "(<a
href=\"http://www.my_path_to_the_wrapper.com/cgi-bin/perlfect/search/search.
pl?q=".my_uri_escape($q).
        "&amp;showurl=$show_url\">$HIGHLIGHT_TERMS{$lang}</a>)";
    }
....

In version 3.30 I had no problems with PHP and ?-suffix.

Regards,
Michael