----- Original Message ----- 
From: "James Keeline" Make sure that your opening PHP tag starts on the 
first character of the first
line.  There should not be any characters after the closing PHP tag.

Also, it is often helpful to include \r\n\r\n after the MIME type 
(image/png).

James
----------------------------
Hi James,
              I always have one following carriage return after the last 
closing PHP tag. I think the was actually a requirement in older versions of 
PHP.

To get around this problem when sending different mime types I just use 
die() so it doesn't matter what white space may follow.

Thanks for the tip about the double \r\n to force the browser to separate 
header information form the content.

Thanks, Rob. 


Reply via email to