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 trial

PHP Build a Simple PHP Application Getting Started with PHP Install PHP on Mac OS X

mamp is running fine, but it won't load index.php

mamp is running fine, but it won't load index.php. it's giving me a blank page. it doesn't display any files. i'm loading localhost

6 Answers

never mind. i figured it out. thanks!

When you open index.php in a file editor, is there any content in it ? If there isn't any paste this:

<?php
echo phpinfo();

and try it again, you should get a overview of the php configuration.

( I never used mamp and running Windows, but that shouldn't be a problem if mamp runs fine. )

yes, there's content in index.php

still blank in chrome and firefox

this is for the Shirts 4 Mike exercise

so when i'm changing index.html to index.php (as the video says), that's when i get into trouble, and the browser goes blank. any suggestions?

Bad Idea PH
Bad Idea PH
14,031 Points

Hi! Can I ask what your solution for this was? I'm currently experiencing the same problem :) I'm using a simple PHP include command.