Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: totally WEIRD bug? Firefox caching? Date: Thu, 20 Mar 2014 10:13:41 +0100 Lines: 38 Message-ID: <532AB145.8080504@arnowelzel.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net 4H08IQ0KgrO/OKoLfxxk4QA/FyUrZOvM4xytQK8dDCiMnQdqrL Cancel-Lock: sha1:x9NCRBV9q5HfFJaLKy3u9GNEmTw= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: Xref: csiph.com comp.lang.php:13240 Am 19.03.2014 18:25, schrieb The Natural Philosopher: > I have TWO IDENTICAL PHP FILES. > > They are supposed to display an image got from a database. > > One does. The other does not. > > It persistently tells me the image is corrupted. > > I have even copied one file that works directly over the other. It still > doesn't work. > > > I have debugged it, got it to output the image to a file and read the > file successfully. What means "read successfully"? Is it a valid image? Is the response from the server valid? > Something on firefox now just assumes its corrupted and won't clear its > cache. I've shut down firefox, Ive changed its name I've clearded its cache. Firefox offers to option to clear the cache - no need to shut it down or to rename the file. > WTF is going on?? Either Firefox once got an invalid image and cached the response or the server does not respond the way you think. Maybe a BOM in the PHP file? This may not be visible in your editor, but it can cause all sort of problems. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de