hello im having twoo issues as stated in the topic name. one of them being the page not being able to load in Opera and the second one being a warning that pops up on the page if you are using IE because my website is Standards Compliant and is not viewable by anyone who uses IE. i have posted the php code below anyone think they can help me out here?
<?php
$UA = $_SERVER['HTTP_USER_AGENT'];
if ((!preg_match('#(opera)#si', $UA)) && (!preg_match('#(firefox)#si', $UA)) && (!preg_match('#(safari)#si', $UA)))
{
# IE stuff
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!-- P: Annotated. Read. Learn. Never ever blight the world with tables and inline styles again. -->
<html>
<head>
<title>GET LOST IE!</title>
<meta name="description" content="Official Website of The Underground NJ Student Ministries" />
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle2.css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="chromejs/chrome.js" />
</head>
<body>
<p>Warning, warning your browser SUCKS! get Firefox, Opera or Safari if you want to see this page</p>
</body>
</html>
<?php
die();
}
# End of IE stuff
# Do not mess with this, for F and everything else good.
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
?>