View Single Post
Old 10-09-2004, 08:33 PM   #1
sanfly
Green Mole
 
Join Date: Oct 2004
Posts: 1
Function_phpdig_form.php issues

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
PHP 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
sanfly is offline   Reply With Quote