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: 59
Joined: Sat Oct 28, 2006 4:22 pm

Page in subfolder cannot see database

Post 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?
jeff11214
 
 
Posts: 59
Joined: Sat Oct 28, 2006 4:22 pm

Re: Page in subfolder cannot see database

Post by jeff11214 »

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