PHP PHP Basics Getting to Know PHP Intro to Workspaces and PHP Code

Ale Din
Ale Din
2,545 Points

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 87,403 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