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 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 91,253 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