Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 11:54 -0700, Ben Dunlap wrote: > On Tue, Aug 11, 2009 at 11:52 AM, Ben Dunlap > wrote: > > @Adam > > The headers_sent() wasa test to ensure that no other > data was creeping > into the

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ben Dunlap
On Tue, Aug 11, 2009 at 11:52 AM, Ben Dunlap wrote: > > @Adam >> The headers_sent() wasa test to ensure that no other data was creeping >> into the headers before I wanted it to. Keeping it in does no harm, as >> it is basically saying, if there are no headers that have been sent, >> send the cor

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ben Dunlap
> @Adam > The headers_sent() wasa test to ensure that no other data was creeping > into the headers before I wanted it to. Keeping it in does no harm, as > it is basically saying, if there are no headers that have been sent, > send the correct ones for the image. But if there are headers that ha

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 13:29 -0500, Adam Shannon wrote: > On Tue, Aug 11, 2009 at 1:08 PM, Ashley Sheridan > wrote: > > > On Tue, 2009-08-11 at 19:02 +0100, Ashley Sheridan wrote: > > > I've got a bit of a weird one here. I'm using PHP to output an image. > > > This works fine when I output as a fi

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Adam Shannon
On Tue, Aug 11, 2009 at 1:08 PM, Ashley Sheridan wrote: > On Tue, 2009-08-11 at 19:02 +0100, Ashley Sheridan wrote: > > I've got a bit of a weird one here. I'm using PHP to output an image. > > This works fine when I output as a file, but when I try to feed it > > directly to the browser it fills

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 19:02 +0100, Ashley Sheridan wrote: > I've got a bit of a weird one here. I'm using PHP to output an image. > This works fine when I output as a file, but when I try to feed it > directly to the browser it fills the screen with random characters. > > I know I've got the heade

[PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
I've got a bit of a weird one here. I'm using PHP to output an image. This works fine when I output as a file, but when I try to feed it directly to the browser it fills the screen with random characters. I know I've got the headers right, as it works some of the time. The only thing I can spot wh