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

Console does not work

Hi Guys,

I am trying to run this code in a work space:

<?php $firstName ='Rasmus'; $lastName = 'Lerdorf'; $fullName = $firstName .' '. $lastName . "was the original creator of php \n"; echo $fullName; ?>

Then I run this command in a console: treehouse:~/workspace$ php 1.php As the result - nothing happens. I can see no output. I have Apache installed - this code works fine if I run it on my server. What am I doing wrong?

Screenshot: http://i92.fastpic.ru/big/2017/0715/7c/00024ed892d8a5162bae88c89d502e7c.png

Boris.

1 Answer

Ray Karyshyn
Ray Karyshyn
13,443 Points

Have you tried clicking the preview button (the eye)?