I want define some constants and access those from any file without including any file in php.
in the other word i search for any equivalent of Web.Config->AppSettings in C#
I want define some constants and access those from any file without including any file in php.
in the other word i search for any equivalent of Web.Config->AppSettings in C#
Copyright © 2021 Jogjafile Inc.
You should define them in a file called constants.php and then change your
php.ini
settings so that this file is always loaded, before anything else: