Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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?