Main goal: Develop header/footer system that can be imported from an infinite amount of subdirectories. (Also, the ability to be used on any server.)
Current goal: To create small script that imports a file (header or footer) by first checking its directory for the file. If the file isn't there, it checks its parent folder. Again, if it isn’t there, it checks its parent folder. It will keep checking the folder above it until it locates and imports the desired file.
Reason: If I import the header/footer in subdirectories, the import statement needs to have a url where the header/footer are always stored. The only problem with this is if you change servers, you will need to manually edit all import commands.
Notes: I am a newbie when it comes to programming and I KNOW there is probably an easier way of doing this. If anyone can help in any way, I would GREATLY appreciate it. Thank you so much in advance.