Browser
-
-
$browser = $_SERVER['HTTP_USER_AGENT']; if(strstr($browser, 'MSIE') == true) // Azione per IE elseif(strstr($browser, 'Firefox') == true) // Azione per Mozilla Firefox // Ecc -
-
Ciao maxin
Cerca gli altri user-agent, non li ricordo tutti

-
-
Ciao maxin,
Cosi:
$browser = $_SERVER['HTTP_USER_AGENT']; if(strstr($browser, 'MSIE') == true) { header('Location: pagina.html'); } elseif(strstr($browser, 'Firefox') == true) { header('Location: pagina2.html'); } -
-
Ciao Maxin
Si.
-
-
Ciao maxin:
Prova con questo cosa succede:
<? $browser = $_SERVER['HTTP_USER_AGENT']; if(strstr($browser, 'MSIE') == true) { header('Location: pagina.html'); exit; } elseif(strstr($browser, 'Firefox') == true) { header('Location: pagina2.html'); exit; } else { header('Location: browser-sconosciuto.html'); exit; } ?> -
-
Ciao maxin,
Con IE cosa succede?
-
-
Ciao maxin,
Non funziona è troppo generico.
Ti fa un redirect, ti mostra una pagina bianca, ti mostra un errore, ecc?Non sono mica vegente.

-
-
Se stai usando
:<? $browser = $_SERVER['HTTP_USER_AGENT']; if(strstr($browser, 'MSIE') == true) { header('Location: pagina.html'); exit; } elseif(strstr($browser, 'Firefox') == true) { header('Location: pagina2.html'); exit; } else { header('Location: browser-sconosciuto.html'); exit; } ?>Il redirect lo deve per forza.
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi