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 trialBruno Silva
2,162 PointsDuplicate header lines?
Hello teacher! Hi guys!
I don't know if this is the case with just Windows 8. I tested this also in IE8 and the latest Chrome version also in Windows 8.
The problem is I was getting a double header ever since after I included the include PHP statement in the top of the .php file in index.php.
So I figured to simply remove the header tags from the HTML code in index.php and just leave the PHP include statement.
Heads up if you guys have the same problem later on! ;) Bet I'll have to do this also in all other pages and just leave the include PHP statements.
God bless you all through Jesus Christ! Bruno
2 Answers
Rebecca Johnston
16,728 PointsI would like to help. Can you add a code example?
Bruno Silva
2,162 PointsHi Rebecca.
Don't worry about it. I just removed the code from index.php and left the code in the include file, such as inside the include folder namely header.php and footer.php.
Thanks though.