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 trialZander Curtis
10,634 PointsWhat's Wrong with this code?
"Hello World doesn't print out. Instead I get.
Index of /
Index.php composer.json composer.lock vendor/
Here is the very simple code according to the video.
<?php
echo 'Hello World!';
?>
2 Answers
Zander Curtis
10,634 PointsYes, I am using composer. Thanks for the response. It seems I have to click the Index.php file in order to see the "Hello World." Maybe the video is off?
mikes02
Courses Plus Student 16,968 PointsNot sure what you mean, but yes you would have to run index.php either in a local server environment (WAMP, MAMP, etc.) or online on a server that supports PHP to see your PHP executed.
TaJuanna Williams
26,697 PointsThis may assist everyone.
For the "Hello World" php example, try the weblink below: http://port-80-onzw0igtns.treehouse-app.com/vendor/index.php
mikes02
Courses Plus Student 16,968 Pointsmikes02
Courses Plus Student 16,968 PointsIt looks like an issue with Composer, are you using Composer with your project?