Answer the question
In order to leave comments, you need to log in
Why does the system not always respond to the .env file?
Good afternoon. There is a file with .env. It contains all sorts of different variables, such as data for entering the database and all that. Added a custom field
In the future I use it like thisISPROD=0
if(env('ISPROD') === 0)
{
$company = iconv("UTF-8", "WINDOWS-1251", $company);
$file= iconv("UTF-8", "WINDOWS-1251", $file);
echo "iconv";
}
Answer the question
In order to leave comments, you need to log in
Try replacing if(env('ISPROD') === 0)
with if($_SERVER['ISPROD'] === 0)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question