Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Тоз код стана емблематичен.Тез хора непреглеждат ли форума!За тях няма ли търсачка? :wink:BG_NIKE каза:Код:$uagent = getenv("HTTP_USER_AGENT"); if(strstr($uagent,"Firefox")) { Stranicata za FF }elseif(strstr($uagent,"MSIE")) { Stranicata za IExplorer }else{ Stranica za ostanalite browseri }
Да тук съм съгласен.alex95_bg_2 каза:трябва да направим една важна тема "Най-често търсените кодове"![]()
<?php
$uagent = getenv("HTTP_USER_AGENT");
if(strstr($uagent,"Firefox")) {
http://localhost/u/index2.html/
}elseif(strstr($uagent,"MSIE")) {
http://localhost/u/index.html/
}else{
http://localhost/u/index.html/
}
?>
miro_94 каза:<?php
$uagent = getenv("HTTP_USER_AGENT");
if(strstr($uagent,"Firefox")) {
echo "http://localhost/u/index2.html";
}elseif(strstr($uagent,"MSIE")) {
echo "http://localhost/u/index.html";
}else{
echo "http://localhost/u/index.html";
}
?>
raiden каза:<?php
$uagent = getenv("HTTP_USER_AGENT");
if(strstr($uagent,"Firefox")) {
header("Location: http://localhost/u/index2.html");
}elseif(strstr($uagent,"MSIE")) {
header("Location: http://localhost/u/index.html");
}else{
header("Location: http://localhost/u/index.html");
}
?>