Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord