Problème JpGraph
darkchristophetd
Messages postés
1100
Date d'inscription
Statut
Contributeur
Dernière intervention
-
pitxu Messages postés 708 Statut Membre -
pitxu Messages postés 708 Statut Membre -
Bonjour.
J'ai un problème avec jpgraph.
Voici mon code :
J'ai bien inclut les fichiers jpgraph et jpgraph_pie.php
Mais j'ai cette erreur :
Chosen locale file ("lang/en.inc.php") for error messages does not exist or is not readable for the PHP process. Please make sure that the file exists and that the file permissions are such that the PHP process is allowed to read this file.
Alors que ni le dossier lang ni le fichier en.inc.php n'existent...
Pourquoi ?
comment faire ??
merci
J'ai un problème avec jpgraph.
Voici mon code :
<?php
$i = 1;
$reponses_groupees = mysql_query("SELECT valeur, COUNT(id) AS reponses FROM sondages_reponses GROUP BY valeur");
while ($donnees_g = mysql_fetch_array($reponses_groupees))
{
$valeurs.= $donnees_g['valeur'].',';
$i++;
}
$data = array($valeur1, $valeur2, $valeur3, $valeur4, $valeur5);
$p = new PiePlot($data);
$p->SetLabelType(PIE_VALUE_ABS);
$p->value->SetFormat('%d');
$p->SetGuideLines();
$g = new PieGraph(220, 200);
$g->title->Set("Les nombres de \"Lost\"");
$g->Add($p);
$g->Stroke();
?>
J'ai bien inclut les fichiers jpgraph et jpgraph_pie.php
Mais j'ai cette erreur :
Chosen locale file ("lang/en.inc.php") for error messages does not exist or is not readable for the PHP process. Please make sure that the file exists and that the file permissions are such that the PHP process is allowed to read this file.
Alors que ni le dossier lang ni le fichier en.inc.php n'existent...
Pourquoi ?
comment faire ??
merci
1 réponse
Bonjour,
Placer au minimum les fichiers suivants pour faire fonctionner jpgraph:
* /jpgraph.php (fichier principal de JPGraph)
* /jpg-config.inc.php (fichier de configuration)
* /lang/en.inc.php (affichage des messages d'erreur)
visiblement tu as mal décompressé jpgraph, car tu devrais bien avoir un répertoire lang qui contient un fichier en.inc.php
Placer au minimum les fichiers suivants pour faire fonctionner jpgraph:
* /jpgraph.php (fichier principal de JPGraph)
* /jpg-config.inc.php (fichier de configuration)
* /lang/en.inc.php (affichage des messages d'erreur)
visiblement tu as mal décompressé jpgraph, car tu devrais bien avoir un répertoire lang qui contient un fichier en.inc.php