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 Enhancing a Simple PHP Application Cleaning URLs with Rewrite Rules Introducing Rewrite Rules

Project Files not Working

Hi i follow the videos and type the code my self every time but i realized mine wasnt working so i downloaded your project and got the same errors heres what my home page looks like

Warning: include(C:/xampp/htdocs/inc/header.php): failed to open stream: No such file or directory in C:\xampp\htdocs\shirts4mike\index.php on line 7

Warning: include(): Failed opening 'C:/xampp/htdocs/inc/header.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\shirts4mike\index.php on line 7 Mike the Frog says: Hey, I’m Mike!

Check Out My Shirts

Mike’s Latest Shirts

Warning: include(C:/xampp/htdocs/inc/products.php): failed to open stream: No such file or directory in C:\xampp\htdocs\shirts4mike\index.php on line 29

Warning: include(): Failed opening 'C:/xampp/htdocs/inc/products.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\shirts4mike\index.php on line 29

Notice: Undefined variable: products in C:\xampp\htdocs\shirts4mike\index.php on line 33

Notice: Undefined variable: products in C:\xampp\htdocs\shirts4mike\index.php on line 36

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\shirts4mike\index.php on line 36

Warning: include(C:/xampp/htdocs/inc/footer.php): failed to open stream: No such file or directory in C:\xampp\htdocs\shirts4mike\index.php on line 50

Warning: include(): Failed opening 'C:/xampp/htdocs/inc/footer.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\shirts4mike\index.php on line 50

my URL looks like this http://localhost/shirts4mike/

1 Answer

HI I HAVE FIGURED OUT THE ANSWER I HAD THEM IN A FOLDER FIRST THEN THE SHIRTS FOR MIKE so it could not find the root..

PLEASE DONT WASTE YOUR TIME ANSWERING THE QUESTION