PDA

View Full Version : Detect Flash Plugin with PHP


nick_kind
02-25-2003, 01:08 PM
Hi there,

Just wondering if it is possible to detect the flash plugin in a browser and show web pages accordinigly using PHP ?

(not javascript !!)

Thanks

Nick

jaybee
02-25-2003, 01:30 PM
AFAIK that's not possible - that level of info isn't sent in the http header, so you will have to check the version on the client with javascript - you could then set a cookie or load a page that sets a session variable and subsequently use php tho, if that helps...

nick_kind
02-25-2003, 01:45 PM
Thanks -

Is it possible in ASP?

You don't happen to have a robust javascript that would do this ?

Cheers mate

Nick

jaybee
02-25-2003, 02:02 PM
yes, I don't know the code cos I don't use asp but you will definitely be able to do it - the javascript detection function would just need to call your page of asp with the parameter in the querystring (eg) for you to then set a cookie/session var and serve up the right movie. from then on you could check whether the cookie/session var existed and avoid doing the javascript detection again unless it was necessary. Colin Moock's javascript sniffer works well and takes most situations into account...see http://www.moock.org/asdg/technotes/playerDetection/

nick_kind
02-25-2003, 02:29 PM
Thanks for your help !