Jump to content

Recommended Posts

Blimey - That works!

 

So its because I had seperate bits of php code that was causing teh error.......dont understand it????

 

Thank you all very much for taking the time out helping me to identify the problem - this is a great community, would never of sussed it as I've got lots of pages with seperate bits of code like that all on one page.

 

Now I need to move that test code onto the server and into my real php pages

 

Cheers

J

I'm going to guess that output_buffing is on in your php.ini and that prevented the error_reporting/display_errors code from showing any header() errors. There weren't any header errors (should have been due to the line that was outside of the php tags) because the output_buffering was hiding the output that was occurring before the header() statements.

It wasn't because the php was separated per-say. It was because their were line breaks in between the opening and closing php tags, which are output. So that output was contributing to the final final binary of the image, thus corrupting it.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.