PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
// IE6 string from user_agent
$ie6 = "MSIE 6.0";
// detect browser
$browser = $_SERVER['HTTP_USER_AGENT'];
// yank the version from the string
$browser = substr("$browser", 25, 8);
// html for error
$error = "Text to display on Error";
// if IE6 set the $alert
if($browser == $ie6){ $alert = TRUE; }
?>
What i was trying to do is to exit() the website if alert is true. Sorry, this might be simple as hell but i'm not a programmer (more the designer type)... would appreciate some help! thanks