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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • badz

    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=12 3\">";


    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.

  • Erwin Moller

    #2
    Re: borken imge.. at the first time..refresh the image.. ok

    badz wrote:
    [color=blue]
    > 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=12 3\">";
    >
    >
    > 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.[/color]


    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

    Comment

    • badz

      #3
      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=12 3\">";

      Comment

      • Erwin Moller

        #4
        Re: borken imge.. at the first time..refresh the image.. ok

        badz wrote:
        [color=blue]
        > 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=12 3\">";[/color]

        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

        Comment

        Working...