Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialWilliam J. Terrell
17,403 PointsKeeping everything in the shirts4mike_local folder... [SOLVED]
So, if I wanted to keep everything in the shirts4mike_local folder, how would I update the BASE_URL and ROOT_PATH constants?
I mean...would the "shirts4mike_local go before or after the "/" that gets concatenated with either constant?
Like so?
define("BASE_URL","shirts4mike_local/");
define("ROOT_PATH",$_SERVER["DOCUMENT_ROOT"] . "shirts4mike_local/");
Or, like so?
define("BASE_URL","/shirts4mike_local");
define("ROOT_PATH",$_SERVER["DOCUMENT_ROOT"] . "/shirts4mike_local");
I assume the former, because doesn't the BASE_URL end with a slash?
Thanks!
[SOLVED]
I figured it out, turns out, it needs a slash on both sides ^^;
Like so!
define("BASE_URL","/shirts4mike_local/");
define("ROOT_PATH",$_SERVER["DOCUMENT_ROOT"] . "/shirts4mike_local/");
Thanks just the same! :D