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 trialBruce Gordon
6,850 PointsProblems 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.
2 Answers
sitkibagdat
27,311 PointsIs your file's extension is php? like index.php not html
Bruce Gordon
6,850 PointsI 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.
Julian Gutierrez
19,201 PointsJulian Gutierrez
19,201 PointsShouldn't index.html be changed to index.php?