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

Amber Readmond
Amber Readmond
7,861 Points

The PHP workspace isn't giving me a readout with my hello.php in the first video. I've checked the syntax over and over.

When I push enter to run my code, it just starts a new line in the console with no read out. I named the file hello.php and my syntax is all correct. Am I missing something? My code looks like this: <?php echo 'Hello World'; ?> Then in the console I type: php hello.php I hit return and nothing happens except a blank new console line with nothing at the start of it that's any different than the line above.

Ben Glazier
Ben Glazier
7,741 Points

Hey Amber

Are you still having this issue? There isn't anything wrong with the code and how you're executing the PHP script, from what you've written above.

<?php
echo 'Hello World';
?>

There could be an issue with your instance of Workspaces. I would look to close your current session, re-launch Workspaces and re-write your PHP script (as it's a short one). If this doesn't work it might be worth reaching out to the Treehouse Support Team (help@teamtreehouse.com) directly.

Hope this helps.

6 Answers

Jason Richard
Jason Richard
1,525 Points

Hey, I had the same problem. You have to click on File and then save the hello.php file before you can run it on the console. She dosen't mention this in the video.

Amber Readmond
Amber Readmond
7,861 Points

Oh my gosh THANK YOU! I'm on day 6 of waiting for a reply from teamtreehouse's help email. THIS. WORKED. I could see if I was just asking for help with a coding problem, but this wasn't on my end and I'm actually paying for this site lol. rant over :) Thank you!

samanthametcalfe2
samanthametcalfe2
5,820 Points

thank-you, she seems to skip over alot.

Jason Richard
Jason Richard
1,525 Points

Your welcome Amber, keep Coding!!

Zach Hope
Zach Hope
12,486 Points

Thank you same issue here , easily resolved!

I spent way too long on that! It would be nice if she mentioned it in the video!

So, it's 2020 and I just watched the video & telling students to save their work before going to the console still hasn't been added.

Eric Adams
Eric Adams
2,472 Points

This got me too but luckily I figured it out in just a few minutes, not days. It would be great if a tooltip or something could be put on the page so people don't get hung up on this. Having a small challenge like this with the tools so early could really put people off.

That said, the workspace concept is brilliant! I'm just returning after a hiatus and haven't seen this before. It seems like a really great way to work through the content. It's nice to see Treehouse putting effort into the platform.