Hey everyone again, I know this isnt' a php question but I figured since lots of people use these forums, that one of them might just have the answer I'm looking for.
Here's the problem, Jpg images won't show up on my apache server (the one installed on my puter), yet the GIF ones show up fine. It seems that only the Jpg ones don't show up.
I've reinstalled php and apache but to little avail..

They don't even show up when I goto the exact image, such as localhost/images/title.jpg it just shows up as an image not found picture (red x).

Any ideas?

    First make sure you did not corrupt the files when you uploaded them.

    Then make sure your Apache setup has the proper MIME settings for image/jpeg.

      Do they work if you use something like kuickshow or gqview? If so, then it sounds like your web browser has a problem.

        Yea, I can view the images through windows explorer (when I'm not on apache) but the second I goto apache (the localhost) it doesn't show up..

        The files aren't corrupted as I can view them in IE and in Photoshop.

        I added
        AddType image/jpg .jpg

        to the httpf.conf file, but that didn't do anything...

          Well, then I'd guess that your web server is messed up. Can you try reinstalling it from scratch to see if that fixes it? If you can at least compare a default apache httpd.conf file to the one you have you might get a clue there.

            Yea, I reinstalled the newer versions of both php and apache.. Configured a bit.. Then said screw it, and opened up the jpgs in photoshop, went to save<as, then just replaced the image..
            And now it works.. So I replaced all the images, and boom, everything is working again.. That's kinda weird thou, that I had to resave<as the jpg in order for my server to recognize it..

            Very weird indeed.
            Thanks everyone ;-)

              Those jpegs might have been made with a program that was creating non-spec standard JPEGS and were therefore unviewable through mozilla or IE.

              What were those jpegs created with?

                I bet it was saving them with extra data inside that caused a problem with your web browser. It's something like the preview field or something that freaks out some clients.

                  Write a Reply...