dpd66100 2013-05-16 10:55
浏览 78
已采纳

中止readfile时的PHP页面超时

I have an simple php view which looks like this:

header('Content-Type: image/png');
readfile($this->image);
exit();

In this example $this->image is for example /data/pictures/thumbs/x/xyz.png.

On an Index HTML I load about 20 products and display their product image with the code above:

<img src="views/showimage.php?id=100"/>

When I now load the index page with the products, it tooks a short time to load every thumbnail image of the product. If I wait until loading is completed, I can click on each other button on the page and it loads the clicked content. If I dont wait until the page /images are beeing loaded, I can click on each other button and the browser will run into a timeout. After this I have to clean my cookies and can do it again.


EDIT:

I figured out, that its possible to load the page for 2 times, even though I dont let him complete loading. On the third load, and clicking on navigation before page loads completed, it rans into timeout...


This is not an browser problem!

Whos having any idea? PHP Log is empty.

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 实值特征权重向量和特征选择,多分类
      • ¥15 INVEST年产水量模块结果出处理
      • ¥15 Neo4j 不显示关系
      • ¥15 这段代码有什么bug
      • ¥15 pip默认安装位置修改不成功
      • ¥15 C++ inline、staitc、const三合一谁能讲通透
      • ¥15 关于pyqt5中QThread的问题
      • ¥20 STM32基于HAL库使用串口发送16进制数组
      • ¥15 OpenCV报错 You can enable it via 'OPENCV_IO_ENABLE_OPENEXR'
      • ¥15 AT89C51的程序问题