Images Dissapearing Randomly?

Discussion in 'Site & Server Administration' started by Louis11, May 28, 2007.

  1. #1
    Alright, some of you might consider this a scripting issue but please bare with me.

    I am creating a web application, nothing spectacular just something to display content. After completing a long night of coding, I uploaded my files to my server and checked to make sure everything was functioning correctly. Everything seemed fine so I went to bed. The next morning, to my surprise, all my images had dissapeared! Well not all of them, just the ones being displayed through the PHP script. (coincidentally, these images where all in the same directory...)

    Of course the first thought that went through my mind was "scripting error". Which surprised me, since everything worked perfectly the night before. I checked and double checked everything, and I couldn't find anything wrong. I checked the permissions on the directory holding the images and they appeared correct (755). So, to locate the problem I decided to strip out all the variables and create a test page that had only the SQL query, and a print to output the <img> code. Still nothing! So I decided to just go the HTML route and create a test file that held only the <img> code, no PHP involved... nothing.

    The images are on the server. I double checked... if you right click > view image, it shows up. Then if you go back to the "test" page and refresh the image is there... however, it does not appear when you first load the page, or it appears and then immediately dissapears.

    I contacted my host about the issue, and their first response said:
    Honestly... are you kidding me? Reiterating my question doesn't constitute as an answer. And they call themselves "engineers"...

    Seeing as it appears to only be affecting one directory (and possibly only JPG images...? Have a look at the test pages above), I believe it might be a permissions issue.

    Any ideas? :eek:
     
    Louis11, May 28, 2007 IP
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Reupload the images in binary mode through FTP with correct permissions.

    Check if your generated HTML page has right content-caching headers if used.
    Clear your browser junk, cookies and temp...try with a different browser.
     
    agnivo007, May 28, 2007 IP
  3. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #3
    Figured it out! It was a htaccess problem rewriting my jpg files to another domain...
     
    Louis11, May 28, 2007 IP