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 PHP Basics Getting to Know PHP Intro to Workspaces and PHP Code

How do I work with PHP on my PC?

I mean: I have Atom-Text Editor on my PC, that I used to learn and exercise with HTML and CSS. Can I do the same now with PHP? Or do I have to install an other program to code in PHP locally? I'm asking this cause I would like to exercise by myself and not always using the Treehouse workspace. Thanks

2 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 90,683 Points

Hi Allessandro.

To work with PHP on your computer you'll need to install a local server. There are a number of options for you to do this such as XAMPP, WAMP or Desktop Server.

These will use a certain location on your desktop where you can store files and use it like you would a web host. It'll allow you to store and use PHP files as if you were online.

Samwel Njenga
Samwel Njenga
1,355 Points

I have installed the wamp server in my pc. It is working well with my html and css files correctly. How do I see what I am doing on php?

Klobi Tonne
Klobi Tonne
8,571 Points

Hi Alessandro,

go to http://php.net/downloads.php hat download the latest version of php. Unzip it into C:\php and add this to your PATH My Computer > Properties > Advanced System Settings > Environment Variables write ";C:\php" after the last entry