"Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Sunday, September 28, 2003, 5:39:53 PM, you wrote: > j> I found this function, setlocale... > > j> now, is there a way to GET the LOCALE setting of a machine? > > j> Walter > > > call setlocale with 0 (zero or NULL) as the second parameter and it returns the current setting
Thanks Tom... Now, if I understand this properly, This should return French_France... setlocale (LC_ALL, 'fr_FR'); echo setlocale (LC_ALL, ''); and this English_ Great Britain setlocale (LC_ALL, 'en_GB'); echo setlocale (LC_ALL, ''); and this German_Germany setlocale (LC_ALL, 'de_DE'); echo setlocale (LC_ALL, ''); and this Russian_Russia setlocale (LC_ALL, 'ru_RU'); echo setlocale (LC_ALL, ''); Well, all of them return the same thing for me... English_United States.1252 The 2 lines I have given in my examples are the only 2 lines in the script. I must be doing something wrong. Any ideas? Thanks Walter PS: And yes, I read the manual, much slower this time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php