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

I have an issue on workspace, it doesn't execute php codes.

i write the exactly same code on the video and it doesn't coloring and executing the code. All codes are yellow in the <?php ?> area

Jeff Lemay
Jeff Lemay
14,268 Points

Is your php code wrapped in php tags?

<?php
  echo "We're inside!";
?>
echo "We're outside the php tags.";

yes, there is no problem on code i tried it on online php controller and it works. Just workspace not working :S

2 Answers

Did you add php to the file name?

*.php

e.g.

my-file.php

omg, thank you Tom and Jeff, i thought that it has already done it by teacher (i just open teacher's workspace)