Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Enhancing a Simple PHP Application Paginating a List: Model and View Understanding Comments

Project Files showing blank..

Hi, wondering if anyone can help me with this. I've downloaded the Project Files for the Understanding Comments of PHP Development course. I've started my MAMP and loaded the file to 'htdocs' in the Application folder. When I try to access on my local server, the web browser is showing nothing.

I've tried opening other Project Files and it seems like the Project Files without the following code "require_once("inc/config.php"); include(ROOT_PATH . "inc/products.php");" in the 'index.php' file are opening fine. Is there something wrong that I'm doing?

Thanks

2 Answers

Kazimierz Matan
Kazimierz Matan
13,257 Points

Did you put your files in a subfolder (like /shirts4mike for instance)? If yes, try to put them in the main folder (htdocs).

Thanks Kazimierz. I've changed the config.php file and things started to work. Thanks for the feedback. Best, Ji