You are here: Re: [PHP] Image Verification - Problems in Safari, Mac OS X « PHP « IT news, forums, messages
Re: [PHP] Image Verification - Problems in Safari, Mac OS X

Posted by "Rahul S. Johari" on 10/20/30 11:16

On 5/18/05 7:19 PM, "Richard Lynch" <ceo@l-i-e.com> wrote:

> Your image is *NOT* a DOCTYPE HTML PUBLIC blah blah!!!
>
> It's a *IMAGE*
>
> Get rid of all the HMTL stuff.
>
> You actually need to separate this into two different files.
>
> One has all the HTML in it, with a SRC=/URL/to/image.php/image.png
>
> The other is JUST the image stuff.
>
> If IE actually displays it as-is, that's pretty broken... But IE is
> pretty broken as it is, so one more broken-ness shouldn't surprise
> anybody.


Ave,

Here's the problem.
I completely understand what's going on and that actually it was IE screwing
it up and Safari was actually doing the right thing. But my problem only
deepens right now with IE.

I did actually remove the Header which declared it as a Image/PNG and
everything seemed to work in both the browsers.

Here's my situation though... I can't separate out these two files because
when a user is on the verification page, where the Image exists, in case he
"reloads" or "refreshes" the page, a new image should be generated and
displayed, so that the verification code is different each time you reach
the verification page. If I was to keep the image code in a different page,
the verification page will pick up the same PNG image and display the same
security code over and over without changing it.

Removing the header with image/PNG actually was working for both browsers, I
could keep both the codes on one page and the page could be
refreshed/reloaded to display new security code... Or reached from anywhere
and you'd still have a new security code.

But here's the problem that came afterwards in IE !
IE is storing the image in it's cache.. And it's displaying the same image
on the verification page whether you use the BACK button, FORWARD button, or
actually go through the website and land back on the verification page. So
in IE, right now, unless you actually HIT the REFRESH button, it's not
changing the image as it's picking up the image from the Cache.

Now I'm not sure what exactly I should do to fix this whole situation.

Thanks all,

Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180

Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul@informed-sources.com
http://www.informed-sources.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация