Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it L'avatar di Cheope
    Registrato dal
    Dec 2003
    Messaggi
    327

    Flash detector server-side

    Ciao a tutti!
    Esite un modo server-side (ASP o PHP) per rilevare il Flash Player?
    Ciao e grazie!
    /* Let's Lead the Web to Its Full Potential */

  2. #2
    Utente di HTML.it L'avatar di Cheope
    Registrato dal
    Dec 2003
    Messaggi
    327
    Devo dedurre di no...
    /* Let's Lead the Web to Its Full Potential */

  3. #3
    Utente di HTML.it L'avatar di Cheope
    Registrato dal
    Dec 2003
    Messaggi
    327
    E invece sì!!!
    Dopo tante ricerche inutili, eccolo... :maLOL:
    Se dovesse servire a qualcuno:


    codice:
        //**************************************
        //     
        // Name: PHP Flash Detector
        // Description:This PHP script will show
        //     if user have or have not flash plugin in
        //     stalled. Function Returns true if has, f
        //     alse if hasnt. You should now that it IS
        //     possible to fake browser accepts..
        Online demo here:
        http://netsec.lv/hosted/code/detector.php
        // By: BlowFly
        //
        //This code is copyrighted and has    // limited warranties.Please see http://
        //     www.Planet-Source-Code.com/vb/scripts/Sh
        //     owCode.asp?txtCodeId=1455&lngWId=8    //for details.    //**************************************
        //     
        
        <?
        function flash()
        {
        	//What browser accepts
        	$accept = $_SERVER['HTTP_ACCEPT'];
        	//Flash tags:
        	$search_for = 'application/x-shockwave-flash';
        	//Seperetae by ","
        	$array = explode(",",$accept);
        	//Search..
        	if(in_array($search_for,$array))
        	{
        		return true;
        	}
        	else
        	{
        		return false;
        	}
        }
        if(flash())
        {
        	echo "You have Flash installed. Proceed to flash page";
        }
        else
        {
        	echo "You havent got flash plugin. You must view HTML page";
        }
        ?>
    /* Let's Lead the Web to Its Full Potential */

  4. #4
    Non è molto affidabile considerando che all'esempio che linka mi dice che non ho il flash player

  5. #5
    Utente di HTML.it L'avatar di Cheope
    Registrato dal
    Dec 2003
    Messaggi
    327

    Me se sono accorto solo dopo aver postato.
    Il PHP flash detector esiste...
    semplicemente non funziona, azz
    Continuo a cercare...
    /* Let's Lead the Web to Its Full Potential */

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.