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

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

 



Ave,

On 5/19/05 5:41 PM, "Marek Kilimajer" <lists@xxxxxxxxxxxxx> wrote:

> If more then one user is accesing the page, you might overwrite the
> first one's verify.png image. Simple and sufficient solution is to
> append a random string to the filename:
> 
> $image_filename= 'verify_' . md5(rand()) . '.png';
> ImagePNG($im, $image_filename);
> ?>
> <img src="<?php echo $image_filename; ?>" width="200" height="40">
> <?php
> 
> Just remember to add some way to remove old images.

Solutions works for me too... Gets rid of the multi-user problem. Thanks for
pointing it out and suggesting the solution.

The other Cache problem still persists. Don't know what to do about it. Is
just not working out in IE.
 

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