|
01-21-2004, 07:33 AM | #1 |
Orange Mole
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 |
01-21-2004, 10:25 AM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. PhpDig version 1.8.0 already has the following code in the config file:
PHP Code:
PHP Code:
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
01-22-2004, 04:39 AM | #3 |
Orange Mole
Join Date: Nov 2003
Location: High Wycombe, Bucks. UK
Posts: 35
|
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.
__________________
Regards Bob Finch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't connect to Database | liquidice | Script Installation | 16 | 01-17-2005 12:17 AM |
connect.php | search4lancer | Script Installation | 1 | 07-20-2004 10:44 PM |
Unable to connect to database : Check the connection script. | marb | Troubleshooting | 5 | 04-12-2004 03:35 AM |
Unable to connect to database : Check the connection script. | Nosmada | Troubleshooting | 2 | 02-27-2004 09:15 AM |
Unable to connect to database : Check the connection script. | Wayne McBryde | Script Installation | 7 | 11-04-2003 12:08 PM |