Call to undefined function locale_accept_from_http()

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Call to undefined function locale_accept_from_http()

Postby perescalador » 24. February 2015 09:29

Hello,

I've installed Xampp 5.6.3 on my Mac OS X Yosemite.

On my code, I try to know the browser language of the user, so I use the following method:

<?php
$locale = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
?>

But when I run the code, I get this error:
Fatal error: Call to undefined function locale_accept_from_http() in /Applications/XAMPP/xamppfiles/htdocs/Escalada/index.php on line 7

How can I enable the locale method?
perescalador
 
Posts: 1
Joined: 24. February 2015 09:22
Operating System: Mac OS X Yosemite

Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 1 guest