SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Detecting flash

  1. #1
    SitePoint Addict ARSA's Avatar
    Join Date
    Apr 2003
    Location
    San Juan, Puerto Rico
    Posts
    215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detecting flash

    Is there a way to detect flash player in the user computer?

    let say I want something like this:

    PHP Code:
    if (user_computer "have flash player")
      { 
    Go to home.php}
       else
      { 
    Go to home.html
    Can I do something like this?

    Thanxs
    "I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." - Albert Einstein

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear everyone,

    In order to detect Flash on a computer, you wouldn't use PHP (because it's a server-side scripting language), but you could use JavaScript. I'm not quite sure how you would write the script, though... . Sorry about my ignorance.

    Compuwhiz7

  3. #3
    SitePoint Zealot Saj's Avatar
    Join Date
    May 2003
    Location
    USA
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, one of the foum members here has something about this. Take a look here:

    http://www.webqs.com/experiment.php?id=16

  4. #4
    SitePoint Addict ARSA's Avatar
    Join Date
    Apr 2003
    Location
    San Juan, Puerto Rico
    Posts
    215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah I have readed some of the post of other users already, but Saj, thanxs for the link, is being useful to me already

    Thanxs you all
    "I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." - Albert Einstein

  5. #5
    SitePoint Zealot webQS's Avatar
    Join Date
    Oct 2002
    Location
    Sydney : Australia
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    my experiment

    Hi

    Bear in mind it's an experiment of mine - at the moment shouldn't be used in live sites until it's been tested widely espec on Mac and Nix.
    If browser support for this was better it would be a lot easier to accomplish. As I write on the link given, IE partially sends the correct HTTP-Accept header to the server - then it changes on refresh.
    Opera doesn't do it at all and Mozilla does it all the time.

    If we assume Flash is present we can leave the version # detection to Flash itself. When there is no Flash Player at all - all browsers tested rendered alternate content in the Object tags - image, text whatever.

    I used Drew McLellans Satay XHTML Markup to be rid of the embed tags.

    It's a hell of a lot more graceful than client side detection but not a replacement for it yet.

    HTH
    James


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •