Page 1 of 1

Page in subfolder cannot see database

Posted: Sat Aug 11, 2018 9:45 pm
by jeff11214
All my login pages are in the same folder.
I have a test page in this folder which sees the database just fine by using this variable: $database = './usersdb.php';
When I move this test page to a sub folder and change the database path to: $database = '/../usersdb.php';
I get the dreadful "User database not found!".

How can I set the database path to see the database in folder above?

Re: Page in subfolder cannot see database

Posted: Sun Aug 12, 2018 12:11 am
by jeff11214
I found the answer... database path should be without the first slash and show two dots.
$database = '../usersdb.php';