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

Please Help! Quick question on MAMP for PHP.

Hi all! So, a quick question concerning MAMP, Brackets, and PHP. I have a project using MAMP in PHP in Brackets text editor. To open this project, I HAVE to do it through MAMP, correct? I can't just open the Live Preview? This is fine with me, I'm just making sure everything is working the way it should with my text editor, and server set-up.

~ Gabriel

1 Answer

Joe Schultz
Joe Schultz
6,191 Points

PHP needs a server to execute. MAMP lets your computer function as a server, so that the PHP code can function. So you do need MAMP running to see if your PHP code is running properly. HTML and CSS do not need a server to run, so a live preview would work with that, but not with PHP.