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 Build a Simple PHP Application Getting Started with PHP Your First PHP File

Adam Czarnik
Adam Czarnik
4,067 Points

I can't complete extra credits, but i don't know that I'm doing it wrong or we have a bug.

I'm testing this code on a few different ways on my server and is working good and showing exactly that format what we need. But when I trying to complete extra credits challenge, then it says complete but nothing about earn extra credits. My first try was like this

<!DOCTYPE html> <html> <body> <h1><?php echo "Shirts 4 Mike"; ?></h1> <p><?php echo ('Today is '. date("l, F j, Y.")); ?></p> </body> </html>

but it seems not working too. Sorry for trouble and my bad English :P

example.php
<!DOCTYPE html>
<html>
    <head>
        <h1><?php echo "Shirts 4 Mike"; ?></h1>
    </head>
<body>
    <p><?php echo ('Today is '. date("l, F j, Y.")); ?></p>
</body>
</html>

1 Answer

Alex Heil
Alex Heil
53,547 Points

hey Adam Czarnik , your code looks absolutely fine and as you already said the challenge passes fine. your issue with not getting additonal points or seeing the extra credit marked as checked is because it's not the way the extra credit works. you can think about it as "homework" but there are no points or anything else to earn.

hope that helps and have a nice day ;)

Adam Czarnik
Adam Czarnik
4,067 Points

oh i get it, i misunderstood that :P thank you for answer and have a nice day too :)