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 PHP Basics (Retired) What is PHP? PHP Basic Usage

I did "hello world" echo exactly how they did it in the video and it's not working

Everything is green except for echo.

index.php
<html>
<head>
<title>PHP Basic Usage Challenge</title>
</head>
<body>
  <p><?php echo "Hello, World" ?></p>

</body>
</html>

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

You may have done it just like they did in the video. But you did something that Treehouse didn't ask for. You included a paragraph tag. :smiley:

:bulb: It's always a good idea to not do anything a challenge doesn't explicitly ask for. Even something that's functional can still cause a challenge to fail.

Removing the paragraph tags should result in you passing the challenge. Give it a whirl! :dizzy:

Micah Johns
Micah Johns
1,574 Points

Same situation here.

I've cross tested this code with out paragraph tags, still throws an error.

<?php echo "Hello World!"; ?>

Copied my code directly from W3Schools php syntax guide. This thing just doesn't process the answers very well? Have had more than one issue with my workspaces like this so far.