This is a discussion on borken imge.. at the first time..refresh the image.. ok within the PHP Language forums, part of the PHP Programming Forums category; Hi there I have one problem regarding broken image.. The problem is quite mystery.. It's happen to other user ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi there
I have one problem regarding broken image.. The problem is quite mystery.. It's happen to other user pc only (the page that we browse reside at the same server)..not at my pc.. it never happen.. When other user go to the url. the face the broken image at the first time and need to refresh their browser .. in order to see the image.. this is the e.g of the code.. echo "<img src=\"http://image.net/image.asp?id=123\">"; for your information I'm using php to code my site but for the image.. it located at ASP server. I had diagnos this problem quite a long times.. first the server not down during viewing the image second: I also try split the code just to print the image but.. the image still broken... any one can suggest.. what is the problem Thanks.. in advance for sharing your ideas regards badz. |
|
|||
|
badz wrote:
> Hi there > > I have one problem regarding broken image.. > The problem is quite mystery.. > > It's happen to other user pc only (the page that we browse reside at > the same server)..not at my pc.. it never happen.. > When other user go to the url. the face the broken image at the first > time > and need to refresh their browser .. in order to see the image.. > this is the e.g of the code.. > > echo "<img src=\"http://image.net/image.asp?id=123\">"; > > > for your information > > I'm using php to code my site but for the image.. > it located at ASP server. > > I had diagnos this problem quite a long times.. > first the server not down during viewing the image > second: I also try split the code just to print the image but.. the > image still broken... > > any one can suggest.. what is the problem > Thanks.. in advance for sharing your ideas > > regards > badz. Hi, Are you sending the right headers? For example: if you return a png: header("Content-type: image/png"); Some browsers accept images without the right headers, some not. If that doesn't solve the problem, provide us with some code or at least an URL. Regards, Erwin Moller |
|
|||
|
okies this site develop at intranet so .. url does not worth it to give
but i'll share some part of the code for the right headers.. is it can be put in .. in the html pages which also contaiin text because if we set the header to image it will not return the text.. if i'm not mistaken.. okies this is the code. echo "<img src=\"http://image.net/image.asp?id=123\">"; |
|
|||
|
badz wrote:
> okies this site develop at intranet so .. url does not worth it to give > but i'll share some part of the code > > for the right headers.. > is it can be put in .. in the html pages which also contaiin text > because if we set the header to image it will not return the text.. if > i'm not mistaken.. > > okies this is the code. > echo "<img src=\"http://image.net/image.asp?id=123\">"; Hi badz, erm.... which code? You didn't post any. Ok: your script image.asp SHOULD START with giving the right header. Please be aware that the image is just NAMED on the HTML-page, and the browser fetches it when he encouters the img-tag. The browser expects a decent response that starts with content-type=XXX Regards, Erwin Moller |