Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Help me answer this question. I'm not sure what's wrong with my answer
<html> <head> <title>A Few of My Favorite Things</title> </head> <body> <h1>A Few of My Favorite Things</h1> <?php inc 'favorites.php'; ?> </body> </html>
Tyler Andal8,382 Points
Here is the solution I came up with to complete the challenge. The first thing I did was replace inc with the include php keyword. Next, the challenge was looking for favorites.php in the inc directory so I added inc/ in my path name. I hope this helps you out!
<html> <head> <title>A Few of My Favorite Things</title> </head> <body> <h1>A Few of My Favorite Things</h1> <?php include 'inc/favorites.php';?> </body> </html>