Hi. These changes are for PhpDig version 1.8.1 downloaded
before the date of this post.
In config.php find:
PHP Code:
//connection to database
if (is_file("$relative_script_path/includes/connect.php")) {
include "$relative_script_path/includes/connect.php";
}
else {
die("Unable to find connect.php file.\n");
}
and replace with:
PHP Code:
//connection to database
if ((!isset($no_connect)) || ($no_connect != 1)) {
if (is_file("$relative_script_path/includes/connect.php")) {
include "$relative_script_path/includes/connect.php";
}
else {
die("Unable to find connect.php file.\n");
}
}
In search_function.php move this block of code:
PHP Code:
$test_short = $query_to_parse;
$query_to_parse2 = explode(" ",$query_to_parse);
usort($query_to_parse2, "by_length");
$query_to_parse = implode(" ",$query_to_parse2);
unset($query_to_parse2);
so that it is below this line:
PHP Code:
$query_for_phrase = $query_to_parse;
It should look like this afterwards:
PHP Code:
$query_for_phrase = $query_to_parse;
$test_short = $query_to_parse;
$query_to_parse2 = explode(" ",$query_to_parse);
usort($query_to_parse2, "by_length");
$query_to_parse = implode(" ",$query_to_parse2);
unset($query_to_parse2);
Again, these changes are for PhpDig version 1.8.1 downloaded before the date of this post.
These changes have already been applied to PhpDig version 1.8.1 downloaded after the date of this post.