View Single Post
Old 01-21-2004, 06:33 AM   #1
rafarspd
Orange Mole
 
rafarspd's Avatar
 
Join Date: Nov 2003
Location: High Wycombe, Bucks. UK
Posts: 35
Updated to 1.8.0 - unable to connect to database

It say's - check the configuration script.
-------------------------------------------------

in \admin\index.php is:

Header('Pragma: no-cache');
$relative_script_path = '..';
include "$relative_script_path/includes/config.php";
include "$relative_script_path/libs/auth.php";

The instructions for relative script path say:-
The $relative_script_path must contain the relative path of PhpDig's root directory from the current script.

so the path is .. [the directory below \admin].

Have I understood it so far!
-----------------------------------

In \includes\config.php we have the additional lines of:

if ((isset($relative_script_path)) && ($relative_script_path != ".") && ($relative_script_path != "..")) {
exit();
}
if (eregi("config.php",$_SERVER['SCRIPT_FILENAME']) || eregi("config.php",$_SERVER['REQUEST_URI'])) {
exit();
}

Surely this is saying that if the relative_script_path is .. then exit with error message.

Perhaps I definately do not understand that!
--------------------------------------------------------

So PhpDig is now dead unless You can help - otherwise the only way to get things working is to go back to the previous version.

p.s. The Database connection information has been entered correctly and double checked.

ttfn
nnnn
__________________
Regards
Bob Finch
rafarspd is offline   Reply With Quote