
Error al mostrar Grafico con JPGRAPH
Publicado por Patricio (16 intervenciones) el 03/08/2014 21:30:33
Estimado
estoy tratando de mostrar graficos estadisticos en un pagina web para lo cual instale jpgraph en la raiz del directorio.
pero al ver la pagina me sale el siguiemte error.
JpGraph Error: HTTP headers have already been sent.
Caused by output from file pruebadegrafico.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".
tengo duda si sera problema de la ubicacion de la carpeta, la cual la tengo asi:
require_once ('jpgraph/src/jpgraph.php');
require_once ('jpgraph/src/jpgraph_bar.php');
agregue la ubicacion src para seguir el archivo.
no se cual pueda ser el error.
agradeciendo la ayuda
atte.
estoy tratando de mostrar graficos estadisticos en un pagina web para lo cual instale jpgraph en la raiz del directorio.
pero al ver la pagina me sale el siguiemte error.
JpGraph Error: HTTP headers have already been sent.
Caused by output from file pruebadegrafico.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".
tengo duda si sera problema de la ubicacion de la carpeta, la cual la tengo asi:
require_once ('jpgraph/src/jpgraph.php');
require_once ('jpgraph/src/jpgraph_bar.php');
agregue la ubicacion src para seguir el archivo.
no se cual pueda ser el error.
agradeciendo la ayuda
atte.
Valora esta pregunta


0