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

console doesn't show anything

i write the code <?php
echo 'Hello World!';
?> and i try to run it in console but it doesn't show anything

Julian Gutierrez
Julian Gutierrez
19,201 Points

Are you working in Workspaces or your own computer environment?

nick coudriau
nick coudriau
Courses Plus Student 820 Points

I am having the same problem, I just started in the php track and when I am working in "workspaces" and try to run my php code in the console area nothing shows up it just moves to the next line as if I had never written any code...?

Workspaces

1 Answer

One thing I encountered is that I hadn't saved my code before trying to run in the console. A handy indicator to check to see if you are hitting the same is the little dot that appears towards the top of your workspace (screenshot). If that appears, save your code and then try the console again. :)

nick coudriau
nick coudriau
Courses Plus Student 820 Points

thank you that fixed it lol I feel so silly .... :P

Don't worry, same here bro. haha