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

Question : Note:Only for the specialized atom text editor user

Am working with the a special text editor It's called atom am trying to open the console or what do they call it?..Anyways i think it's githubs console. Or to be specific

How to open the developer console in atom?

Jeff Muday
Jeff Muday
Treehouse Moderator 28,720 Points

Atom is awesome!

The developer environment is activated the same way you do it in Chrome browser-- CTRL+SHIFT+i

Personally, I don't take advantage of the developer console in Atom (someone correct me if I am wrong about this) as it is specifically for modifying/troubleshooting Atom itself rather than the program code you are editing.

Perhaps you are thinking of an Atom add-on package like "atom-terminal" on Mac and Linux or "atom-terminal-powershell" on Windows? Those add on a hook to the console environment to Atom associated with your host-operating system -- csh/bash/etc. on MacOSX and Linux, and Powershell on Windows.

This is activated with-- CTRL+SHIFT+t

You will have to add-on this package (as it is not part of the standard installation). You can find that and so many more packages by clicking

File->Settings->Install and then type into the search box, "terminal"

Happy "Atoming" it's a truly great editor/environment! JM

Jeff Muday I Appreciate your answer but i don't mean the developer console, I tried the "ctrl+shift+I" I mean a console so i launch my PHP code, Thank you! and Happy Coding.

Well am sorry that i said in my question "Developer Console" But what do I mean is the console where i test my PHP code in there without using the treehouse workspaces. Am sorry for that.

2 Answers

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 28,720 Points

As PHP is not part of the native operating system, you will have to install it separately.

http://windows.php.net/download/

But! You are probably destined to work on a full-stack (sometimes called LAMP, WAMP, etc) on future projects. By "full-stack" we mean HTTP server Apache (or Nginx) database of MySQL (or Maria, Postgres, Mongo, etc.) and for the scripting language, PHP. You can set this up in many different ways depending on your host operating system, but in the spirit of keeping it simple, I would recommend the Apache Friends project XAMP -- a fairly complete stack for developing PHP.

https://www.apachefriends.org/index.html

Good luck with your learning-quest!

JM

Hi John, If you do not work with Treehouse's workspace console, it is essential that you will download a web server program such as Xampp. This will include within it Apache and MySQL to work with databases later. To view your PHP code you will then have to access to your localhost and the name of the file. For example, if your port is 80 then you need to type in the browser localhost:80/1.php

Pay attention that if you name your file 'index.php' it will not display it in the localhost with the rest of your files and you will have to type it manually in the browser.