Installer Symfony
Symfony est un framework pour php.
Pré-requis :
php-pear = gestionnaire de library php
php5
php-xml
Symfony est un framework pour php.
Pré-requis :
php-pear = gestionnaire de library php
php5
php-xml
<?php
echo MySQLDateToExplicitDate(date('Y-m-d'));
Function MySQLDateToExplicitDate($MyDate, $WeekDayOn=1, $YearOn=1)
{
$MyMonths = array("Janvier", "Février", "Mars", "Avril", "Mai", "Juin",
"Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre");
$MyDays = array("Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi",
"Vendredi", "Samedi");
$DF=explode('-',$MyDate);
$TheDay=getdate(mktime(0,0,0,$DF[1],$DF[2],$DF[0]));
$MyDate=$DF[2]." ".$MyMonths[$DF[1]-1];
if($WeekDayOn){$MyDate=$MyDays[$TheDay["wday"]]." ".$MyDate;}
if($YearOn){$MyDate.=" ".$DF[0];}
return $MyDate;
}
?>
Voici mon fichier syslog.conf :
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
Modifier le http.conf avec :
AddDefaultCharset ISO-8859-1
AddCharset ISO-8859-15 .iso8859-15 .latin9 .fr