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

2005-05-24 Thread Richard Lynch
On Mon, May 23, 2005 8:46 am, Rahul S. Johari said: 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. Your method is fine. In fact, it penalizes IE for some stupidity in its caching,

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

2005-05-23 Thread Rahul S. Johari
Ave, On 5/21/05 9:11 AM, Ryan A [EMAIL PROTECTED] 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

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

2005-05-21 Thread Ryan A
Hey, used to have the same problem, solved it by having a random string in the img calling part. 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

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

2005-05-21 Thread Marek Kilimajer
Richard Lynch wrote: On Thu, May 19, 2005 6:05 am, Rahul S. Johari said: I did actually remove the Header which declared it as a Image/PNG and everything seemed to work in both the browsers. Great. Now it works in 2 browsers, and breaks in 237. You MUST separate the two. Actualy he

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

2005-05-20 Thread Rahul S. Johari
Ave, On 5/19/05 6:08 PM, Rory Browne [EMAIL PROTECTED] wrote: if you have an image generated by http://www.example.com/createimage.php , you could always refer to it as http://www.example.com/createimage.php/{no_of_seconds_since_unix_epoch}.png It's sounding logical, but could you explain a

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

2005-05-20 Thread Rahul S. Johari
Ave, On 5/19/05 5:41 PM, Marek Kilimajer [EMAIL PROTECTED] 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()) .

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

2005-05-20 Thread Richard Lynch
On Thu, May 19, 2005 6:05 am, Rahul S. Johari said: I did actually remove the Header which declared it as a Image/PNG and everything seemed to work in both the browsers. Great. Now it works in 2 browsers, and breaks in 237. You MUST separate the two. Period. Here's my situation though... I

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

2005-05-19 Thread Rahul S. Johari
On 5/18/05 7:19 PM, Richard Lynch [EMAIL PROTECTED] 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

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

2005-05-19 Thread Rahul S. Johari
On 5/18/05 6:23 PM, Marek Kilimajer [EMAIL PROTECTED] wrote: BTW, you might not be concerned about it much, but you have a race condition in your script. Ave, What do you mean by race condition ? Rahul S. Johari Coordinator, Internet Administration Informed Marketing Services Inc. 251

RE: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Murray @ PlanetThoughtful
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

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

2005-05-19 Thread Rahul S. Johari
On 5/19/05 10:59 AM, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: Try forcing the browser to bypass the cache by adding the lines at the following link to your page: http://www.faqts.com/knowledge_base/view.phtml/aid/21068/fid/51 I thought this would definitely work because it looks

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

2005-05-19 Thread Marek Kilimajer
Rahul S. Johari wrote: On 5/18/05 6:23 PM, Marek Kilimajer [EMAIL PROTECTED] wrote: BTW, you might not be concerned about it much, but you have a race condition in your script. Ave, What do you mean by race condition ? If more then one user is accesing the page, you might overwrite the first

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

2005-05-19 Thread Rory Browne
if you have an image generated by http://www.example.com/createimage.php , you could always refer to it as http://www.example.com/createimage.php/{no_of_seconds_since_unix_epoch}.png On 5/19/05, Rahul S. Johari [EMAIL PROTECTED] wrote: On 5/19/05 10:59 AM, Murray @ PlanetThoughtful [EMAIL

[PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-18 Thread Rahul S. Johari
Ave, A simple Image Verification script is working perfect in IE on Windows... But isn¹t working in Safari on Mac OS X! It displays a blank page instead of the image with the form. Here¹ s the Script: ? header(Content-Type: image/png); session_start(); $new_string;

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

2005-05-18 Thread Jason Wong
On Thursday 19 May 2005 03:51, Rahul S. Johari wrote: A simple Image Verification script is working perfect in IE on Windows... But isnt working in Safari on Mac OS X! It displays a blank page instead of the image with the form. Here s the Script: That's because IE is severely broken? In

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

2005-05-18 Thread Marek Kilimajer
Rahul S. Johari wrote: Ave, A simple Image Verification script is working perfect in IE on Windows... But isn¹t working in Safari on Mac OS X! It displays a blank page instead of the image with the form. Here¹ s the Script: ? header(Content-Type: image/png); Because only Safari gets it right. With

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

2005-05-18 Thread Richard Lynch
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