Iphone4s 6.0.1 Perfect Jailbreak ie6 dynamic thumbnail does not display the reason

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.