[Windows + PHP5] Localizing date()?



Hello

I'm trying to localize a small PHP application which uses
date() to display a date saved as Epoch in MySQL, but I can't get the
month to be displayed in French:

=========
//BAD setlocale(LC_ALL, 'fr_FR@euro', 'fr_FR', 'fra_fra');
//BAD setlocale(LC_ALL, 'fra_fra');
//BAD setlocale(LC_ALL, 'french');
//BAD setlocale(LC_ALL, 'fr_FR');
//BAD setlocale(LC_ALL, 'fr-FR');
//BAD setlocale(LC_ALL, 'fr');
//BAD too
setlocale(LC_ALL, 'French');

//27 December 2007 instead of
//27 décembre 2007
echo date('d F Y', '1198790064');
=========

I read the comments in www.php.net/date , and was wondering...

1. Why PHP5 seems to have a problem with locales, and

2. What would be the least complicated way to change this call to
date()?

Thank you.
.



Relevant Pages

  • Re: Need Help Building - Dynamic php content using mySQL
    ... i believe that u have some data stored in mySQL and want to use PHP to ... > basically I've designed a html page as I would like the output to look. ... > wherever I've wanted to display dynamic content pulled from mySQL, ...
    (alt.php)
  • php mysql problem
    ... i recently upgraded from fedora core 5 to cent os 4.4 with php 4.3 ... called specific entries from mysql are no longer working ... my code to display the entry looks like ... write all of my scripts ...
    (php.general)
  • PHP and mysql seems very slow.
    ... I am testing php and mysql, because our ISP only uses that. ... To retrieve 25 records from a table of 1564 records, and display the ...
    (comp.lang.php)
  • Re: Need Help Building - Dynamic php content using mySQL
    ... > i believe that u have some data stored in mySQL and want to use PHP to ... >> basically I've designed a html page as I would like the output to look. ... >> wherever I've wanted to display dynamic content pulled from mySQL, ...
    (alt.php)
  • Performance of lots of ECHOs V Jumping In/Out of PHP
    ... chars each) in a MySQL db that you need to display, ... to check to see whether you should display it or not. ... A continuous block of php, with all the text displayed via echo commands ... Or jumping in and out of php for each block of text i.e. ...
    (comp.lang.php)