Local php server configuration in php.ini

Can the default locale value be hosted in php.ini or .htaccess?

Equivalent to php function

setlocale(LC_MONETARY, 'it_IT'); 

eg

+6
php locale
source share
2 answers

You can take a look at intl.default_locale .

+3
source share

Nothing will help in php.ini. But as an alternative, you can try setting environment variables from .htaccess

 SetEnv LC_ALL it_IT.UTF-8 

But these settings will take effect only for versions of PHP and CGI and FastCGI at best, and not for the usual installation of mod_php.

+2
source share

All Articles