Archive

Archives pour la catégorie ‘Php’

Installer Symfony

Symfony est un framework pour php.

Pré-requis :

php-pear = gestionnaire de library php
php5
php-xml

Lire la suite…

Categories: Linux, Php Tags:

Convertir Date en lettre

<?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;
}
?>

Lire la suite…

Categories: Php Tags:

Projet SYSLOG

Configuration Syslogd :

Voici mon fichier syslog.conf :

# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*                                                 /dev/console

Lire la suite…

Categories: Linux, Perl, Php, Projet, Réseau Tags:

Régler les problème d’accent Apache et PHP

 

Modifier le http.conf avec :

AddDefaultCharset ISO-8859-1

AddCharset ISO-8859-15 .iso8859-15 .latin9 .fr

Lire la suite…

Categories: Linux, Php, Web Tags: