![]() |
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 |
Hi. PhpDig version 1.8.0 already has the following code in the config file:
PHP Code:
PHP Code:
|
Hi Charter
Please accept my apologies for bothering you with a problem which was due entirely to my brain not functioning correctly. I would never have thought of calling the connect.php direct from the browser, it confirmed that the database variables were not set correctly. To clarify, they were set correctly but when I entered the data I did not remove the '<' and '>'. What an idiot! My best regards to you and sorry to hear about the troubles. Is there anything I can do to help. |
All times are GMT -8. The time now is 10:19 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.