✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP
    • Close
  • Jonathan Tebb
    Jonathan Tebb
    672 Points

    Help me answer this question. I'm not sure what's wrong with my answer

    Posted on Jun 17, 2021 by Jonathan Tebb
    Jonathan Tebb
    672 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Alex Gwartney
    Alex Gwartney
    13,256 Points

    Not sure why this is not passing for the include statement.

    Posted on Oct 27, 2020 by Alex Gwartney
    Alex Gwartney
    13,256 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Dhruv Chadha
    Dhruv Chadha
    2,179 Points

    desired output is showing but still getting error msg

    Posted on Nov 5, 2019 by Dhruv Chadha
    Dhruv Chadha
    2,179 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Benoit Tordeurs
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Benoit Tordeurs
    Full Stack JavaScript Techdegree Student 9,400 Points

    I can't resolve this challenge for some reason please helphttps://teamtreehouse.com/library/php-basics-2/php-on-the-web/

    Posted on Jan 14, 2018 by Benoit Tordeurs
    .a{fill-rule:evenodd;}techdegree
    Benoit Tordeurs
    Full Stack JavaScript Techdegree Student 9,400 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    2 Answers

  • Benoit Tordeurs
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Benoit Tordeurs
    Full Stack JavaScript Techdegree Student 9,400 Points

    PHP Basic last module challenge task1 of 1: include a php blocks to include within the "inc" directory not accepting my

    Posted on Dec 28, 2017 by Benoit Tordeurs
    .a{fill-rule:evenodd;}techdegree
    Benoit Tordeurs
    Full Stack JavaScript Techdegree Student 9,400 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Bryan Haire
    Bryan Haire
    2,971 Points

    adding a file

    Posted on Nov 7, 2017 by Bryan Haire
    Bryan Haire
    2,971 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • dale das
    dale das
    1,262 Points

    Where is the inc directory?

    Posted on Nov 5, 2017 by dale das
    dale das
    1,262 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Rajnish Kumar
    Rajnish Kumar
    41,092 Points

    <?php include "favorites.php" ?> please its not work

    Posted on Oct 21, 2017 by Rajnish Kumar
    Rajnish Kumar
    41,092 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Alan Jeronimo
    Alan Jeronimo
    1,220 Points

    It's NOT working for some reason :-/

    Posted on Sep 22, 2017 by Alan Jeronimo
    Alan Jeronimo
    1,220 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Bouh Houssein Kaireh
    Bouh Houssein Kaireh
    5,103 Points

    I correctly included the favorites.php file below the h1 tag and in the preview i see thing appear but i get an error

    Posted on Sep 3, 2017 by Bouh Houssein Kaireh
    Bouh Houssein Kaireh
    5,103 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    2 Answers

  • Sasa Sanjic
    Sasa Sanjic
    963 Points

    An issue with "include" exercise.

    Posted on May 19, 2017 by Sasa Sanjic
    Sasa Sanjic
    963 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    2 Answers

  • Noel Peña
    Noel Peña
    5,900 Points

    PHP include not working

    Posted on May 18, 2017 by Noel Peña
    Noel Peña
    5,900 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    2 Answers

  • Eilam Maimoni
    PLUS
    Eilam Maimoni
    Courses Plus Student 9,618 Points

    Cant see What went wrong... Whats the problem with my code?

    Posted on Apr 10, 2017 by Eilam Maimoni
    Eilam Maimoni
    Courses Plus Student 9,618 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Matt Mortensen
    Matt Mortensen
    8,334 Points

    Haven't figured out why this code challenge is wrong

    Posted on Mar 31, 2017 by Matt Mortensen
    Matt Mortensen
    8,334 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • vardan gupta
    vardan gupta
    7,887 Points

    why this code is giving error

    Posted on Mar 11, 2017 by vardan gupta
    vardan gupta
    7,887 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Gamzat Mukailov
    Gamzat Mukailov
    12,627 Points

    Bummer! Make sure you INCLUDE the "favorites.php" file

    Posted on Jan 9, 2017 by Gamzat Mukailov
    Gamzat Mukailov
    12,627 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    3 Answers

  • tylerduprey
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    tylerduprey
    Full Stack JavaScript Techdegree Student 25,399 Points

    My include code is working in the "preview" but it's not passing when I click "Recheck work".

    Posted on Dec 17, 2016 by tylerduprey
    .a{fill-rule:evenodd;}techdegree
    tylerduprey
    Full Stack JavaScript Techdegree Student 25,399 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Ramzy Rashaun Arief
    Ramzy Rashaun Arief
    3,922 Points

    my code is working but its still false when recheck work

    Posted on Nov 4, 2016 by Ramzy Rashaun Arief
    Ramzy Rashaun Arief
    3,922 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    2 Answers

  • WK h
    WK h
    2,924 Points

    What is the different between require and include since i saw the documentation state that these two are the same?

    Posted on Sep 22, 2016 by WK h
    WK h
    2,924 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Dave Cleaves
    Dave Cleaves
    1,835 Points

    favorites.php file does not exist

    Posted on Sep 16, 2016 by Dave Cleaves
    Dave Cleaves
    1,835 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    2 Answers

  • Egor Banshchikov
    Egor Banshchikov
    4,736 Points

    Output is OK but exercise won't pass

    Posted on Sep 11, 2016 by Egor Banshchikov
    Egor Banshchikov
    4,736 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    Within the current directory, I have created a file named favorites.php that displays a few of my favorite things. Add t

    Posted on Aug 20, 2016 by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    Answer to this code challenge so I can study this.

    Posted on Aug 20, 2016 by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • PHP
    • PHP Basics
    • PHP on the Web
    • Including PHP

    8 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.