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 trialFaye Ma
1,028 PointsI've been following along but the console never print the result
everytime I hit enter it always give me treehouse:~/workspace$, should i press enter or I did something wrong? I have restarted workspace for several times.
2 Answers
Henry Nguyen
13,204 Pointstry saving the work first. The teacher seems to forget to remind us of that.
Ivan Penchev
13,833 Pointsin order to run php scripts in the console, dont forget to put php infront.
so if your script is called myscript.php
in order to run it from the console you must type,
php myscript.php