Hey itsmenarwal.
That would be your first problem ;-)
Seriously though. I would guess that something - most likely a warning - is being printed with your image data, thus corrupting it.
Try commenting out the Content-type header. That would make the file data print to the browser window, along with whatever is corrupting it. That way you can spot the error and fix it.
You can also try just silencing all errors by adding the following to the top of your page:
[code=php]ini_set('displa y_errors', false);
error_reporting (0);[/code]
Posts from new members (under 5 posts) go through extra spam-filtering, so they may not always be immediately visible. There should have been a notice about that when you posted it. - In any case, it seems to be visible now.
That would be your first problem ;-)
Seriously though. I would guess that something - most likely a warning - is being printed with your image data, thus corrupting it.
Try commenting out the Content-type header. That would make the file data print to the browser window, along with whatever is corrupting it. That way you can spot the error and fix it.
You can also try just silencing all errors by adding the following to the top of your page:
[code=php]ini_set('displa y_errors', false);
error_reporting (0);[/code]
i posted one problem regarding opening downladed file error(not opening image)..i am not finding it..where it is
Comment