PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Function_phpdig_form.php issues (http://www.phpdig.net/forum/showthread.php?t=1436)

sanfly 10-09-2004 08:33 PM

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

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:
Code:

$relative_script_path = './phpdig';
PhpDig is looking for connect.php in a path
./phpdig/includes/connect.php

Is this correct?


All times are GMT -8. The time now is 07:00 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.