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>© 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.
<?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>© 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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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.
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.
ASKER