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 trialJaco Burger
20,807 PointsCan't load Shirts 4 Mike site on local.
This might be late and I might be overworked ... so excuse me if I missed something stupid :)
I've extracted the source files into htdocs/mike. Whenever I go to localhost/mike, all I get is a white screen, with a blank dom. I've removed all the content from the index.php to test, and echoed a statement, and that appeared fine.
Did I miss a step perhaps? I'm sure it must have something to do with the ROOT_PATH or require_once urls.
Thanks!
1 Answer
Jaco Burger
20,807 PointsOkay figured it out, so I had to modify the BASE_URL and ROOT_PATH in the config.php a bit. Here is what I did.
define("BASE_URL","/mike/");
define("ROOT_PATH",$_SERVER["DOCUMENT_ROOT"] . "/mike/");
Altough, that doesn't seem right. Why didn't that work with a relative path?
Malith Senanayake
12,488 PointsMalith Senanayake
12,488 PointsThanks Jaco, I also encountered the same problem. I did the same modification you have done and it worked for me.