View unanswered posts | View active topics It is currently Fri Jun 21, 2024 1:24 pm



Reply to topic  [ 2 posts ] 
blank lines before png header after Stroke() 
Author Message
New pChart user
New pChart user

Joined: Thu Dec 05, 2013 9:47 pm
Posts: 2
Post 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


Thu Dec 05, 2013 10:07 pm
Profile
New pChart user
New pChart user

Joined: Thu Dec 05, 2013 9:47 pm
Posts: 2
Post 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 :oops: . These apparently were sent to the output BEFORE the header was sent.


Fri Dec 06, 2013 10:13 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron