🤑 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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • Jonathan Tebb
    Jonathan Tebb
    672 Points

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

    Posted June 17, 2021 4:00pm 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 October 27, 2020 4:49am 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 November 5, 2019 8:38pm 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 January 14, 2018 6:25pm 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 December 28, 2017 6:12am 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 November 7, 2017 4:40pm 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 November 5, 2017 9:59pm 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 October 21, 2017 6:08am 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 September 22, 2017 2:30am 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 September 3, 2017 6:24pm 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 May 19, 2017 6:38pm 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 May 18, 2017 6:43pm 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 April 10, 2017 7:28am 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 March 31, 2017 9:20pm 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 March 11, 2017 7:23am 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 January 9, 2017 9:40pm 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 December 17, 2016 4:50pm 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 November 4, 2016 10:43am 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 September 22, 2016 5:54am 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 September 16, 2016 5:16pm 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 September 11, 2016 8:07am 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 August 20, 2016 7:57am 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 August 20, 2016 7:44am 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.