You can use a PHP auto_prepend_filescript in your PHP file to do this, since it will be launched before any of your users have -land scripts:
Specifies the name of a file that is automatically parsed before the main file. The file is included as if it were called with a function request, so include_path is used.
So you can add the ini line, for example:
auto_prepend_file="/home/user/script.php"
In / home / user / script.php:
define('CONSTANT_NAME', 'your nice value here');
Now in your PHP scripts you can access CONSTANT_NAMEfrom anywhere you like, as it is available in all PHP scripts.
, mod_rewrite, PHP- . .