Nieuw lid |
|
Ik zou graag een script in PHP willen, ik heb een JS script van wat ik wil maar om bepaalde redenen moet het PHP zijn.
Dit is het JS script:
<script>
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
//if NS 6
if (browser_type=="Netscape"&&browser_version>=5)
window.location.replace("http://www.shadowillusions.be")
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
window.location.replace("http://www.shadowillusions.be")
//if NS4+
else if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("http://www.shadowillusions.be")
//Default goto page (NOT NS 4+ and NOT IE 4+)
else
window.location="http://www.shadowillusions.be"
</script>
<script> var browser_type=navigator.appName var browser_version=parseInt(navigator.appVersion) //if NS 6 if (browser_type=="Netscape"&&browser_version>=5) window.location.replace("http://www.shadowillusions.be") //if IE 4+ else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4) window.location.replace("http://www.shadowillusions.be") //if NS4+ else if (browser_type=="Netscape"&&browser_version>=4) window.location.replace("http://www.shadowillusions.be") //Default goto page (NOT NS 4+ and NOT IE 4+) else window.location="http://www.shadowillusions.be" </script>
Dus de vraag is, kan iemand zo'n script met het zelfde effect in PHP kunnen maken?
BvD, NickS
|