ID:               29033
 Updated by:       [EMAIL PROTECTED]
 Reported By:      robotech at mixmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Linux
 PHP Version:      4CVS-2004-07-06 (stable)
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

You probably have trailing or tailing whitespace in the include file.


Previous Comments:
------------------------------------------------------------------------

[2004-07-06 17:34:38] robotech at mixmail dot com

Description:
------------
I'm using GD to generate a dinamic image showing a chart.
It sees that there's and error when I try to use the keyword "include".

I also try to use an empty file using the keyword "include" and the
result it's the same.

Reproduce code:
---------------
/*************/
/* chart.php */
/*************/
Header ("Contect-type: image/jpeg");
include ("function.phtml"); //only a group of functions. They all
work.
$imgW = 500; $imgH = 312;
$img = ImageCreate($imgW,$imgH);
$black = ImageColorAllocate($img,0,0,0);
$white = ImageColorAllocate($img,255,255,255);
ImageFilledRectangle($img,0,0,$imgW,$imgH,$white);
$font = 2;
$txt = "Hello, dude!";
ImageString($img,$font,100,100,$txt,$black);
ImageJPEG($img);
ImageDestroy($img);


Expected result:
----------------
If would like to reuse a same code inside function.phtml in all my
dinamic charts.

Actual result:
--------------
It isn't working. Only works when I exclude the include.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29033&edit=1

Reply via email to