Javascript Displaying Image

Job ID: 31296673

Budget: $10 – $30 USD

I have upload an php class to my website. The ImageUpload class renames all uploaded images to a random name and changes the extension to '.tmp'. In order to correctly display the image to the visitor, it needs to send headers towards the browser to tell it what kind of file it is and how it should handle it. I attached part of this class showImage.php here for your reference.

when I view 1 image through image.php http://www.ipsunflez.org/ImageSecure/ImageUpload/image.php?id=4, the image displaying in all browser including Safari and IE.

Problem 1 :
when I view 100 images through display.php http://www.ipsunflez.org/ImageSecure/ImageUpload/display.php, It only displayed some images but not 100 images in all browsers.

Problem 2 :
The display.php totally not working and displaying not even 1 image in IE and Safari.

I would like you to settle problem1 and problem2 in browser MF, Opera, GC, Edge, IE and Safari.
Related categories: PHP JavaScript MySQL HTML jQuery / Prototype