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.

PHP Build a Basic PHP Website (2018) Adding a Basic Form Objects

I need help on the palindrome question.

A palindrome is a piece of text or a number that reads the same forward and backwards, like "madam" or 343. A prime number is a number that is not evenly divisible by any other number, like 13 or 3571. Some numbers like 11 and 757 are palindromes and primes: these are called "palindromic primes" or "palprimes." In this code challenge, we will work with a third-party library that helps us identify palindromic primes. First, at the top of the file, let's include the third-party library. You can find it at "class.palprimechecker.php" in the same folder as the "palprimes.php" file below.

2 Answers

Hi Aaron,

You copy and pasted the description of the challenge but didn't specify where you are having issues. What's the trouble? If it is on the first step, they are asking you to include a PHP file at the top of your file, which can be done using PHP's include, like so:


echo "The number ## ";
echo "(is|is not)";
echo " a palprime.";
Pieter Bracke
Pieter Bracke
4,078 Points

Hi, Mike I wonder why do they ask to use include here and not require as shown in the PHPmailer example?