Re: [PHP] IMAGE LOADED...
On Sun, August 13, 2006 8:03 am, tedd wrote: This leads to the opposite problem of IE caching DYNAMIC images when it should not, which is a whole different rant. :-) In that case, I just added a random string to end of the image url like so: images/myimage.jpg?a=adj12k4mfdi If I remember correctly, it seemed to work. Works okay for images on MOST browsers, but not some ancient IE versions. Will also fail as a generalized technique for a PDF if the user has configured Adobe Reader to open in a Adobe rather than as a plug-in. Also fails as a generalized technique for the PDF embedded in an FDF. Basically, IE simply does not deal well with Rich Media (non-HTML) dynamic content. It's quite narrow-minded on what can be dynamic on the Internet. I personally would recommend that folks solve this problem in a generalized way using URL re-writing with $_SERVER['PATH_INFO'] as I have posted in the past (several times, actually) because that solution works well across the board, and means you can re-use the code for Images, PDFs, FDFs, Ming (PHP-generated Flash), MP3s, etc instead of having different code-bases for each. The basic technique for this is posted in a rant here: http://richardlynch.blogspot.com in case anybody cares. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IMAGE LOADED...
I build a small site in which some images are loaded in all pages. I concern if the client have slow connection to internet. Does any one can tell me how to send such images to client's computer? I want to increase the speed connection by taking such image from client's computer when it's already set (just like cookie or cache) Best Regards BBC **o0o** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IMAGE LOADED...
On Sat, August 12, 2006 3:18 pm, BBC wrote: I build a small site in which some images are loaded in all pages. I concern if the client have slow connection to internet. Does any one can tell me how to send such images to client's computer? I want to increase the speed connection by taking such image from client's computer when it's already set (just like cookie or cache) If you are using an image tag, and if the URL does not change for any given image, and if the headers do not have no-cache, and if the headers do have a reasonable expiration then all browsers will cache the image. In addition, if the first two conditions are met, IE will probably cache the damn thing anyway, whether it should or not. :-( This leads to the opposite problem of IE caching DYNAMIC images when it should not, which is a whole different rant. :-) Oh, plus, AOHell will re-sample and re-compress and cache your images, to decrease bandwidth. AOLusers can over-ride this in their own settings, if they can figure out how to click through AOL's interface hell to do that. Hope that helps. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php