문제

I get this error:

Fatal error: Call to undefined function locale_get_default() on linux hosting (cpanel). The PHP Version is 5.3

I use this to detect users location and language

Here PHP documentation and it has a sample code

http://php.net/manual/en/locale.getdefault.php

I had same issue in localhost using xampp and got it resolved using this post locale_get_default() function issue on localhost

But in web hosting i get the same error

도움이 되었습니까?

해결책

This function requires PECL intl >= 1.0.0... check this;

http://php.undmedlibrary.org/manual/en/function.locale-get-default.php

Check if it installed. If not, ask your hosting provider to install it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top