pChart 2.x forum http://wiki.pchart.net/forum/ |
|
blank lines before png header after Stroke() http://wiki.pchart.net/forum/viewtopic.php?f=1&t=40114 |
Page 1 of 1 |
Author: | insomniux [ Thu Dec 05, 2013 10:07 pm ] |
Post subject: | blank lines before png header after Stroke() |
Hi, Hoping my question will be seen between all non-pChart related garbage... I've a php script which generates a nice graph using the myPicture->render("graph.php") command. However using myPicture->stroke(), the image which is sent to the browser contains a couple of blank lines at the beginning, before the PNG header. Although I know where the blank lines are generated, I cannot avoid it. And, moreover, these blanks apparently are stripped off by the render() method. Is there a way to strip the leading blank lines from the myPicture object prior to apply the stroke() method? Thx |
Author: | insomniux [ Fri Dec 06, 2013 10:13 am ] |
Post subject: | Re: blank lines before png header after Stroke() (soleved, k |
Problem solved: In one of the php scripts had to load (using require() ) before invoking Stroke(), there were some blank spaces AFTER the <?php ?> tags . These apparently were sent to the output BEFORE the header was sent. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |