Php flash 9 detection script

hi guys,

i want to have a page on my website that detects whether the user has the latest version of flash and if they do, directs them to the site and if not, directs them to a page saying to download the latest version of flash player.

is there a php script or something i can whack in my page to do this?

thank you very much and i hope to hear from you?

all the best,