My grand idea is to set up a "test" area. So from my public_html directory, I will have "test" and "prod". I will have one file paths.php which sets the $URLpath and the $WEBpath to the appropriate area - then I only have to change one thing.
Problem:
PATHS.PHP has a path of:
/home/username/public_html/test/paths.php
The script I'm running has the following path:
/home/username/public_html/test/Scripts/signup/login.inc.php
And so I've tried putting an include statement in the login file:
include("../../paths.php") was my first choice - that seemed right to me.
That didn't work - failed to open stream: No such file or directory
so then I tried:
"../paths.php"
"../../../paths.php"
"../../../../paths.php"
None work. Why isn't this working? I can't go from the top down, because I want this to be able to work for the test as well as the production directory.
/Wendy
Problem:
PATHS.PHP has a path of:
/home/username/public_html/test/paths.php
The script I'm running has the following path:
/home/username/public_html/test/Scripts/signup/login.inc.php
And so I've tried putting an include statement in the login file:
include("../../paths.php") was my first choice - that seemed right to me.
That didn't work - failed to open stream: No such file or directory
so then I tried:
"../paths.php"
"../../../paths.php"
"../../../../paths.php"
None work. Why isn't this working? I can't go from the top down, because I want this to be able to work for the test as well as the production directory.
/Wendy