par
Raaly » 12 août 2005, 10:22
ah oui mais non, enfin, je veux dire :
soit ça vient de moi soit ça vient de jpgraph mais si tu veux afficher un graph dans une page tu peux rien faire d'autre sinon il te sort ça :
JpGraph Error: HTTP headers have already been sent.
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".
du coup c'est pour ça que je veux faire ma génération de graph dans une autre page php et importer le resultat (et donc retour à la question de mon 1er post, comment recuperer les valeurs de ma requete dans une autre page afin de generer mon graph)! soit je me trompe de methode et il existe un autre moyen (celui que tu m'as donné, mais auquel cas, je fais une erreur quelque part)
ah oui mais non, enfin, je veux dire :
soit ça vient de moi soit ça vient de jpgraph mais si tu veux afficher un graph dans une page tu peux rien faire d'autre sinon il te sort ça :
[quote]JpGraph Error: HTTP headers have already been sent.
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".[/quote]
du coup c'est pour ça que je veux faire ma génération de graph dans une autre page php et importer le resultat (et donc retour à la question de mon 1er post, comment recuperer les valeurs de ma requete dans une autre page afin de generer mon graph)! soit je me trompe de methode et il existe un autre moyen (celui que tu m'as donné, mais auquel cas, je fais une erreur quelque part)