When I upload a thumbnail image, the thumbnail shows the following link;
Copy the Code code as follows:
< img src = "/index.php?action=sys_upload_showthumb&id=bdc3955470adfb5637a0d1f517eb3d35"/>
The result does not show the thumbnail under IE6, and then goes back to the following snippet:
Copy the Code code as follows:
Header ("Content-type:image/jpeg");
Header ("Content-length:". strlen ($_session["FileInfo" [$image _id]));
echo $_session["FileInfo" [$image _id];
unset ($_session[' fileInfo '] [$image _id]);//
Exit (0);
So I thought it was too late to show it was unset? Then the deletion was successful. Later, the following code was changed:
Copy the Code code as follows:
Header ("Content-type:image/jpeg");
Header ("Content-length:". strlen ($_session["FileInfo" [$image _id]));
echo $_session["FileInfo" [$image _id];
/** immediately output the top of the SESSION, to solve the IE6 generated under the thumbnail is not shown before it has been unset ($_session["]) empty, resulting in IE6 can not display thumbnails of the situation * *
Echo $str. Str_repeat (', 256); Some browsers must be output up to 256 characters
Ob_flush ();
Flush (); These two have to be used together.
unset ($_session[' fileInfo '] [$image _id]);//
Exit (0);
In fact, this leads to the server output control and browser caching problems, which is a bit complicated, and later have the opportunity to study again.
The above describes the iphone4s 6.0.1 perfect jailbreak ie6 dynamic thumbnails do not display the reason, including the iphone4s 6.0.1 perfect jailbreak aspect of the content, I hope the PHP tutorial interested in a friend helpful.