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

Problems

This PHP course just seems to hate me. XD Anyways, I have two problems.

Whenever I try and access http://localhost/shirts.php it always shows up with an error that says "Object not found!".

Secondly, $pageTitle does not seem to be working for me. I have no idea what the problem is. It's completely identical to Randy's code, yet the title still doesn't show up in contact.php.

Also, downloading the Project Files from the next lesson doesn't work either. I still get both of the same errors.

Help?

1 Answer

Hi Larry,

Did you check for any spelling mistakes or any difference in the case (uppercase or lowercase) of the $pageTitle variablename.? Did you forgot to include it in the header file between the title tags.?

Regarding that Object not found error in case of the page, pls check that page whether contains the php code or not or there can be some mistake in the code like a comma or semicolon missing....

It can't be a mistake in either of the files, because everything had already been pre-coded when I downloaded the project files. D: