I would honestly be surprised if anything like this exists, but I couldn't find anything relevant with my Google-fu.
I'm including a PHP file using require_once()
on every page of my site. The file is a light custom-made framework.
I was wondering if I could drop the entire require_once()
line and, by using another obscure mechanism, include the library at the beginning of every file in a specified folder.
The reason behind this is that the files in that particular folder are going to be modified by people with limited coding knowledge and I don't want them screwing up the PHP lines thinking they're not important.
EDIT: The library will be ultimately distributed and aims to work on typical PHP installatons.
Thanks!