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 PHP Basics (Retired) PHP Data & Structure PHP Variables

prabhu lingam
prabhu lingam
6,955 Points

php on laptop

how do i run php on my laptop as you told it needs a server.

3 Answers

Grace Kelly
Grace Kelly
33,990 Points

you need to install either XAMPP/MAMP, depending on if you are using a windows/mac laptop. There is a section in this course that explains how to install it: http://teamtreehouse.com/library/build-a-simple-php-application

Hope that helps!!

I use XAMPP on my laptop and I have helped other students who started with MAMP and ended up having to switch to XAMPP because MAMP did not work for them for some reason, so I recommend XAMPP. But many people use MAMP also.

Gianluca Mauro
Gianluca Mauro
3,236 Points

You can also add the php executable (located in XAMPP/MAMP installation folder) in $PATH variable, and use the terminal for execute your .php scripts without use the browser. It's very usefull for test some little snippets of code or test functions from the SPL. To run scripts in terminal launch this comand: php my_script.php