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 trialVamsi Pavan Mahesh Gunturu
4,541 PointsWhy my code is not giving any output?
Are we supposed to have a open a seperate code block and echo name?
<?php
$name = "Mike";
echo $name;
?>
1 Answer
Marcus Parsons
15,719 PointsHey Vamsi,
Your code looks good. Make sure you're running PHP with web server software. If you just try opening the file in a browser, it won't let you process PHP code. There are a bunch of solutions for you out there: XAMPP, MAMP, LAMP, etc. I find XAMPP to be one of the easiest, but it's up to you. Just make sure whatever you end up using can run PHP.
Vamsi Pavan Mahesh Gunturu
4,541 PointsVamsi Pavan Mahesh Gunturu
4,541 PointsMay be they are on weekend! Is it not strange that we cannot have more than 3 comments! and I had to edit my existing one?
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsSorry, I didn't see this was for a challenge haha. Your code is perfect for the challenge. Another person has had trouble with their code today, even though it was perfect like yours. I think the Treehouse servers are just a tad wonky today is all.