Bonjour, je suis en train de créer mon site web et j'aimerais y introduire des graphiques.
J'ai beaucoup cherché, et avec toutes les librairies qui existent, y a du choix, et pour autant j'arrive à rien, soit le projet est mort, soit toutes les explications sont en anglais et je comprend rien, soit ya pas d'explication...
J'ai fini par trouver un tuto assez détaillé pour JpGraph, donc je suis lancé avec celui là...
Mais voilà, pour voir si ça marche, j'ai copié le script donné en exemple dans ma page html que j'ai bien sûr renommée en php.
Mais bien sûr ça marche pas, et voici ce qui est écrit sur ma page :
"JpGraph Error: HTTP headers have already been sent.
Caused by output from file acidofilo.php at line 9.
Explanation:
HTTP headers have already been sent back to the browser indicating the data as text before the library got a chance to send it's image HTTP header to this browser. This makes it impossible for the library to send back image data to the browser (since that would be interpretated as text by the browser and show up as junk text).
Most likely you have some text in your script before the call to Graph::Stroke(). If this texts gets sent back to the browser the browser will assume that all data is plain text. Look for any text, even spaces and newlines, that might have been sent back to the browser.
For example it is a common mistake to leave a blank line before the opening "<?php"."
Alors si quelqu'un peut m'expliquer où se situe le problème ? Que puisse continuer à me prendre la tête avec les librairies et tout le tralala afin de créer mes courbes
Merci d'avance.
Partager