Closed esjdev closed 4 years ago
That code will be very slow since it is loading the file over and over. Also, ini files are not the same as env files, so you won't be able to use the same syntax. Moreover, other 3rd party code looking for env variables in $_SERVER
won't work. For example, the AWS SDK looking for credentials, or the Bugsnag notifier.
That code will be very slow since it is loading the file over and over. Also, ini files are not the same as env files, so you won't be able to use the same syntax. Moreover, other 3rd party code looking for env variables in
$_SERVER
won't work. For example, the AWS SDK looking for credentials, or the Bugsnag notifier.
Thank you very much for taking this question :D
What is the difference between using phpdotenv and the code below?