Development Tools Using PHP with MySQL Connecting PHP to MySQL Creating the Products Table

Jaco Burger
Jaco Burger
20,807 Points

Can'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
Jaco Burger
20,807 Points

Okay 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
Malith Senanayake
12,488 Points

Thanks Jaco, I also encountered the same problem. I did the same modification you have done and it worked for me.