Link to home
Start Free TrialLog in
Avatar of andejul3
andejul3

asked on

PHP simple Includes not working

I have this in my html page where the footer would go:

<?php include './includes/footer.php'; ?>

And I have an includes file named footer.php inside an includes folder on the site's root directory with this in it:

<footer><p>&#169; Foothills Rehabilitation LLC Idaho Falls, ID 83404</p></footer>

Why is it not working?  It's like it doesn't see the includes file.  

Thanks.
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of andejul3
andejul3

ASKER

Thanks so much.  I had just forgotten to change the .htm to .php on the file.  But I learned a few things from your comments.
If you're new to PHP and want some good learning resources, this article can help point you in the right direction.  If you're an experienced programmer looking for PHP-only guidance, just skip over the elementary parts that you already know.
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11769-And-by-the-way-I-am-new-to-PHP.html
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
Dave and Hielo both gave complete and accurate answers, within seconds of each other and within 10 minutes of the time of posting.