[PHP] image cannot be displayed contains errors

Discussion in 'Web Design & Coding' started by Khayman, Apr 13, 2005.

  1. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    Recently i've started getting this error when trying to view pictures localy through a web page. The picture either displays a tiny bit or shows that error in FF and the normal red x in IE.
    Sometimes it starts to display the image and then goes ot the error

    The pictures display fine every where else, in other programs etc.

    Any thoughts?
     
  2. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    Another one fixed, lol

    FYI i enabled these two lines in apache config

    EnableSendfile Off
    EnableMMAP Off
     
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    EnableSendfile Off will hurt performance BADLY. And EnableMMAP will hurt it even more.

    Sendfile is a low level command to directly read a file from disk right to a socket, and out, without first copying it into memory, this helps keep memory usage low for Apache. MMAP is a way to map files to certain parts of memory without the files actually being there, this helps speed up switching between the forks, as to who handles it next.

    The problem has to lie elsewhere.