borken imge.. at the first time..refresh the image.. ok

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2005
badz
 
Posts: n/a
Default borken imge.. at the first time..refresh the image.. ok

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.

Reply With Quote
  #2 (permalink)  
Old 01-12-2005
Erwin Moller
 
Posts: n/a
Default Re: borken imge.. at the first time..refresh the image.. ok

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
Reply With Quote
  #3 (permalink)  
Old 01-13-2005
badz
 
Posts: n/a
Default Re: borken imge.. at the first time..refresh the image.. ok

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\">";

Reply With Quote
  #4 (permalink)  
Old 01-13-2005
Erwin Moller
 
Posts: n/a
Default Re: borken imge.. at the first time..refresh the image.. ok

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0