I want to have a constant (a string) that is available to all PHP-scripts on the server.
According to http://php.net/manual/en/function.parse-ini-file.php this is quite easy if you parse an extra .ini file, however I don't want to parse an extra file, I want to set my constant in the global php.ini without having to parse anything in the scripts. (In fact that's the whole point because I need the constant to find the stuff to include/parse/etc: When I know where this extra .ini file would be, I don't need it anymore!)
Just inventing a new constant in php.ini and then trying to access it with ini_get() does not work, is there any other way?
I compile Apache and PHP myself, so I could also set the constant at compile-time and/or use Apache-constants if that is neccessary.