Foros del Web » Programando para Internet » PHP »

duda con phplot y GD

Estas en el tema de duda con phplot y GD en el foro de PHP en Foros del Web. hola, necesito hacer unos graficos tomando unos datos de una bd, para lo cual pienso usar el phplot porque he leido muy buenos comenntarios, mi ...
  #1 (permalink)  
Antiguo 07/02/2006, 01:21
Avatar de el_cesar  
Fecha de Ingreso: mayo-2001
Ubicación: Cali
Mensajes: 2.423
Antigüedad: 23 años, 10 meses
Puntos: 20
duda con phplot y GD

hola, necesito hacer unos graficos tomando unos datos de una bd, para lo cual pienso usar el phplot porque he leido muy buenos comenntarios, mi duda es referente a la configuracion del GD, pues me descargue la ultima version del phplot y tengo el php 5 (el que viene con el easy php 1.8), en fin, el caso es que active extension=php_gd2.dll en mi php.ini, pero a la hora de generar un grafico usando el phplot, solo me saca estos errores:

Cita:

Warning: Cannot modify header information - headers already sent by (output started at f:\archivos de programa\easyphp1-8\www\graficos\graf1.php:9) in f:\archivos de programa\easyphp1-8\www\phplot\phplot.php on line 1090

Warning: Cannot modify header information - headers already sent by (output started at f:\archivos de programa\easyphp1-8\www\graficos\graf1.php:9) in f:\archivos de programa\easyphp1-8\www\phplot\phplot.php on line 1091

Warning: Cannot modify header information - headers already sent by (output started at f:\archivos de programa\easyphp1-8\www\graficos\graf1.php:9) in f:\archivos de programa\easyphp1-8\www\phplot\phplot.php on line 1092

Warning: Cannot modify header information - headers already sent by (output started at f:\archivos de programa\easyphp1-8\www\graficos\graf1.php:9) in f:\archivos de programa\easyphp1-8\www\phplot\phplot.php on line 1093

Warning: Cannot modify header information - headers already sent by (output started at f:\archivos de programa\easyphp1-8\www\graficos\graf1.php:9) in f:\archivos de programa\easyphp1-8\www\phplot\phplot.php on line 1099
seguido de esto:

Cita:
‰PNG  IHDRXEëîª9PLTEÂÂÂ’’’ÿÿÿ¾¾¾‡ÎëWž»ÿÏÿ¥ÏuÿÏÿÏî‚î ¾R¾ðÿÿÀÏϺ¬„²IDATxœíÛr«:Dw…ãJQüÿÿžÄØ„‘Ô*™½ H| ´<’eþ} AàŸuDŸH,AAb KPX‚‚Ä$– ±‰%(¤ÅÖBtÂK‰%€H,AAb KPX‚‚Ä$– ±‰%(H,AAb KPX‚‚Ä$– ±‰%(H,AAb KPX‚‚Ä$– ±‰%(H,AAb KPX‚‚Ä$– ð&ÖðÃóùaï=Bœd±†åéaç=Bœd#Önœ’X"›¤XóÓŸÿÿûïKK-O.ßź?º[´ŽRŠX"›„X«a¼ÄhºAPX‚‚Ä®*Öh]Þ¹¨Xã(³¸\S¬q”Yd.)Ö8Ê,6—ëKbѹ¢X?Jݵ’ZD.(Ö¸,¤Ë‰µ qIj‘¸˜X;I- ×kß!©EàJb¥’Zp®#ֱуX&,µŽ‰/–Y K*#¢‹eÚºR+Mp±¬[Vj¥-–‡fõPËK“z©‡/âŠå¨9¥Ö_¢Šå¬-5gº%¦X›Ñc )–Ó&”Z+Šå¸ýW*5áĵÝÙÊ_¤Öƒ`b¡ÚmšXfI*™Xb¡ÚlšˆfI*_ "‰k°iâš%µ"‰…l,¶XR+ŽXP*æ1–Ô"D,h¸Ztµ.ìV±°½àÑC4×U +‚XÈÆùë‘Ô¢à_,b¸:|Æ5Õò._«ãW \Q-çbq{Áõ‹R ‹k±Ú„«³o¨ãjj9 Úg¬‘Z@üŠÕê¤2R †W±šö‚…ï-à:s¦>ÅjÞ ®ßÎUë*ak“kIägšÑÏ¢¬[%‹K¨•H9쿧 –áê¹–Ôªe±–§*"V«bA¤V%Û1Ö’*òË&UäÜڏ[˜&òžŽ:6O9$ûE*zÁõµÊI¥Š´¼;éÑ9à±Ç= æhºzxQF´P«ËÉ-7bù W„mí1Þá–a€±ÜjÅØÞ;cŸfùËe/¸Þ$S*.½r!–ëpÅÝì‰E{PyíϼtºÃ/†Öbµ¢Ž†¸"qÛ‹H+v ™e*V”^p]/K kÃ6Š©lQP_fÙ‰…=Ž*´º—E*¬+³¬Ä ®¸åõd–X±µâ•Ù‘Y&bÅí×Å2ÊíÇ,±â‡+bÑݘÕ\,ð¯vZÝKÇß ‹Y Å— ÃpE«A'fµë÷—ÖnzÁðZôaV3±ð'‡¸Ðê´Z]˜ÕJ,øél>ÂÕle$Vh¯p›‚U«³ÚŽ±PÔ7#¾íju`Vëo…MH9g¨V |³¬Oô+Ð|¬ÓÌqj…7+œXˆ¶#^S+ºYÑÄ‚´õ‚+”ZÁÍŠ%.0¯‹Õ 2¶Y‘Ä‚ô‚o}G*Ðf ÑXÛ¶¢µD*Èf…ËÕLûñ5 ±–‡¦9Hw¨ŸM7’ß±±V©"M¯¥`'Éfm¸ºÞqÍÚdôs±*›Ç41B*Z aÍJ¤ã~F¬æ9Hw–ä\ ìee.ÓѺþˆ¤óCä;4´ó[Ý.Y ±Üt…umâ¥QªÔò²yøžn7ǐ¤fOBšåY¬ŠÆ(ŽU.;Ĉf9«›hõ¤\*€ f¹«¸<7B—;µW±l?Üþ:Äpfù«ŸAû_ÊöMb(ÔÊÍäÂ'Šö/ÊÎ=q(–›hÅk˵‚™åN,Og_g™Æ2Ë›X×€ü’¯V¨Ýô%–ÇA»£1’Yž Ä*ék~‡xz¿™åH,‡ÑŠÏ¯ZÓùOT
donde asumo que esta intentando hacer el grafico, pero algo debio faltar en la configuracion del gd

la pregunta es: que falto?
__________________
Say no more.......
  #2 (permalink)  
Antiguo 07/02/2006, 01:31
Avatar de el_cesar  
Fecha de Ingreso: mayo-2001
Ubicación: Cali
Mensajes: 2.423
Antigüedad: 23 años, 10 meses
Puntos: 20
estas son las lineas de la 1088 a la 1093 de phplot.php

Código PHP:
      // Browser cache stuff submitted by Thiemo Nagel
        
if ( (! $this->browser_cache) && (! $this->is_inline)) {
            
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
            
header('Last-Modified: ' gmdate('D, d M Y H:i:s') . 'GMT');
            
header('Cache-Control: no-cache, must-revalidate');
            
header('Pragma: no-cache'); 
y esta la 1098 y 1099

Código PHP:
 if (! $this->is_inline) {
                
Header('Content-type: image/png'); 
__________________
Say no more.......
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:18.