PDA

View Full Version : Function_phpdig_form.php issues


sanfly
10-09-2004, 08:33 PM
Okay, so as directed in the config.php instructions i have copied search.php and clickstats.php into my main directory from phpdig dir. I have also added ./phpdig where directed.

My problem is, if i dont set $relative_script_path to ./phpdig, then search.php just displays as a blank white page. When i do set it, the search page loads, but when I try and search for anything I get an error message "Unable to find connect.php file for dropdown menu."

This error message is defined in function_phpdig_form.php, but I dont understand why it is occuring. Several other places call connect.php without a problem, it just seems to be this page that has an issue with it.

THis is the code
if (DISPLAY_DROPDOWN) {
$dropdown_flag = 0;
$relative_script_path = './phpdig';
if (isset($_GET['template_demo'])) { $template_demo = $_GET['template_demo']; } else { $template_demo = ""; }

if (is_file("$relative_script_path/includes/connect.php")) {
include "$relative_script_path/includes/connect.php";
}
else {
die ("Unable to find connect.php file for dropdown menu.\n");
}

For now i have made DISPLAY_DROPDOWN in config.php false, but I am curious to know why this error is occuring

vinyl-junkie
10-10-2004, 09:14 AM
I don't know your directory structure, but I believe all you need to do is change this value to something else:
$relative_script_path = './phpdig';

PhpDig is looking for connect.php in a path
./phpdig/includes/connect.php

Is this correct?