Hi guys/gals,
I was wondering if there is a way to globally include files throughout all scripts within PHP. This is possible in ASP within the Global.ASA file but through my research I've found that PHP does not have an equivalent to the Global.ASA. I read something about this being possible by editing some parameter in a file called .htaccess but there was no explanation on how to do this.
The reason for wanting to do this is because I have a file which includes all my application level functions - I can include this page on all my pages by using include() at the top, but I'd rather have it included in one central location so that if i switch servers or the directory structure changes, or any other unforseen change happens, I don't have to change the reference to the file in thousands of places. I hate being stuck in scenarios where if I have to or want to change something I have to edit hundreds of files to accomplish the task.
Thanks for your help.
Sincerely,
Mark