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!
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 trial
William J. Terrell17,403 Points
Keeping 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?
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?
I figured it out, turns out, it needs a slash on both sides ^^;
define("BASE_URL","/shirts4mike_local/"); define("ROOT_PATH",$_SERVER["DOCUMENT_ROOT"] . "/shirts4mike_local/");
Thanks just the same! :D