I have a site that uses PHP includes. There are snippets of code in the header and footer includes (one in each) that I want to use on every page except the homepage (index.php). Obviously, I can take them out of the includes and put them into every page except the homepage, but I was wondering if I can have them in the includes and then remove them from the homepage with some code.
Thank you.
1 Answer