Re: Image Verification - Problems in Safari, Mac OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ave,


On 5/21/05 9:11 AM, "Ryan A" <ryan@xxxxxxxxxxxx> wrote:

> eg:
> 
> first have a function to generate a modest random string (I use 8 chars)
> 
> then in the image calling part call it something like this:
> 
> <img src='<?php echo $your_image_gets_called_here; ?>?<?php echo
> $the_rand_string; ?>'>
> 
> as you can see above, its an over simplified version, but you can tune it as
> you go along...works
> everytime for me.

Calling my image and then assigning a random string as a query string didn't
really help.. I don't know if I did it correctly or misunderstood the logic
you were implying. What I did made my image look like verify.png?839838ksh8
... But that didn't really make IE display the fresh image.. It still
displayed the old image from cache, only the Query string was a unique
random string each time.

However, your theory gave me another idea which works for now! Instead of
defining the image name as verify.png.. I have defined the image name to be
the random string. Each time the page opens.. A new image is created with a
new image name... Thus IE cannot display the old image from it's cache
because the image name's differ.

The con of this method is that every time someone accesses this page, a new
image will be created and stored in the folder, taking up byte space. I'll
definitely run up a script to erase images a day old though.

For now this works.. I don't know if it's the best way to do this, but
considering nothing regarding the Cache was working, I don't mind doing this
for now, at least the application is working.

If I had misunderstood your method and you think your method is better then
what I'm using now, I'd still really appreciate if you can clarify and
explain.

Thanks again,

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@xxxxxxxxxxxxxxxxxxxx
http://www.informed-sources.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux