Page in subfolder cannot see database

Issues related to the Login tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html

TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
Post Reply
jeff11214
 
 
Posts: 74
Joined: Sat Oct 28, 2006 4:22 pm

Page in subfolder cannot see database

Post by jeff11214 » Sat Aug 11, 2018 9:45 pm

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?

jeff11214
 
 
Posts: 74
Joined: Sat Oct 28, 2006 4:22 pm

Re: Page in subfolder cannot see database

Post by jeff11214 » Sun Aug 12, 2018 12:11 am

I found the answer... database path should be without the first slash and show two dots.
$database = '../usersdb.php';

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests