On 30-Aug-2001 Veniamin Goldin wrote:
> Hello !
> 
> Please help me,
> 
> How to get Month name according to server's locale setings ?
> 
> I tryed to use:
> 
>  setlocale("LC_ALL", "LT");
>  $month = strftime("%B", mktime(0,0,0,$m,1,$y));
> 
> But I get message:
> 
> Warning: Passing locale category name as string is deprecated. Use the
> LC_* -constants instead. in
> 

Try what it says, use the constant:
  setlocale(LC_ALL, 'LT');

-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to