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 Creating the Menu and Footer Starting the Project

Problems converting html to php

I am at the beginning of the php course creating the Shirts 4 Mike website. I downloaded and installed XAMPP and I was able to get test.php working properly. Now I am trying to make a couple of modifications to index.html to convert the title and footer to php.

I rebooted the computer and restarted Apache and made sure that test.php still functions correctly.

What I changed the code to in index.html is: <title><?php echo "Shirts 4 Mike"; ?></title> and <p>Ā©<?php echo date('Y'); ?> Shirts 4 Mike</p>

The title of the webpage displays as <?php echo "Shirts 4 Mike and the footer displays as (c) Shirts 4 Mike.

Julian Gutierrez
Julian Gutierrez
19,201 Points

Shouldn't index.html be changed to index.php?

2 Answers

Is your file's extension is php? like index.php not html

I think I need to take more time working through these problems myself. I am not comfortable yet with the syntax in php. Thanks for your help.