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 trialGabriel E
8,916 PointsWhy does my browser not recognize "Hello, World!"?
I'm starting php, and whether I'm using my own editor, Brackets, my browser doesn't recognize the php code block of "Hello World". Not sure what to do here. My code is spot on to the teacher's. But it does actually recognize it in the workspaces.
1 Answer
jcorum
71,830 PointsCan't tell for sure, based on what you've said. But one thing that is very important if you are viewing php code in a browser is that you can't open the php file as a file, you have to have it served up by a server. So check first to make sure you started the server.
I use MAMP, and I sometimes forget to start MAMP, and then nothing works right!
Hope this helps.