I need to define custom constant, that would be visible in all my php files. Maybe I can use php.ini or there is a module that would allow me to do this? I would rather avoid using auto_prepend_file.
I was asking google a lot, but didn’t find the answer, I am wondering if it possible at all.
I am using private server so I have access to root user and all files.
edit: added information about that I don’t want to use auto_prepend_file
You can use
auto_prepend_filein Your.htaccess/php.iniand define constants/variables in itManual Page