PDA

View Full Version : PHP globals



Dudeking
03-24-2007, 07:34 AM
Right, just set up a proxy on my site, needed to disable global for it to work properly.
Only problem is the backbone of my site working in IE6 is this,
<?php
$ua = $_SERVER['HTTP_USER_AGENT'];
if (strpos($ua,'MSIE') != false && strpos($ua,'Opera') === false)
{
if (strpos($ua,'Windows NT 5.2') != false)
{
if(strpos($ua,'.NET CLR') === false) return;
}
if (substr($ua,strpos($ua,'MSIE')+5,1) < 7)
{
?>
<link href="/style/ie6.css" rel="stylesheet" type="text/css">
<?php
}
}
?>

I need to register $_SERVER but have no idea how. I managed to register Document room with just ="http://dudeking.co.uk/"; but this is a superglobal it has so many things to register!!!