getobj.php代码<?php
header('Content-Type: image/jpg');readfile($file);
?>调用页面main.php<img src='getobj.php?file=xx1.jpg' />
<img src='getobj.php?file=xx2.jpg' />如果我多次调用main.php,并且里面有很多这样显示的图片的话,第二个main.php必须等第一个main.php的图片显示完了才会开始显示.
请问是为什么啊,有没有什么办法让他们都能一起显示.
解决方案 »
- php脚本的安全机制,只有ron脚本才能运行
- JAVASCRIPT执行不起来问什么
- 请假php大家日常都用不用错误处理啊
- PHP对SQL Server 2005中图片的插入和显示问题
- php 中link传递的问题
- 如何用session记录和显示登陆的用户名?
- 在httpd.conf里写了很多urlrewrite的规则(超过10行了),会增加服务器的消耗吗?
- PHP写Cookie时进行了编码,请问怎么用JavaScript解码?
- [求助]php表单提交问题
- php源码怎么看(如COM方面的)?用什么工具?
- PHP 中imagecopyresized函数把图像的颜色转变了,这是怎么回事?
- 对于手册中流程控制"continue"不解,求教
var xmlhttp;
function loadXMLDoc(picName){
if (window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}
if (window.ActiveXObject){
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
if (xmlhttp==null){
alert ("Your browser does not support XMLHTTP!");
return;
}
xmlhttp.onreadystatechange=displayPicture;
xmlhttp.open("GET",'getobj.php?file=' + picName,true);
xmlhttp.send(null);
}function displayPicture(){
if (xmlhttp.readyState==4){
if (xmlhttp.status==200){
var img = document.getElementById('img1');
img.src = xmlhttp.responseText;
}else{
alert("Problem retrieving XML data:" + xmlhttp.statusText);
}
}
}
</script>
我的服务器可能不支持ajax,还有没有别的办法?