im thinking the problem lies in you if() statement.
substr(string, start, stop) returns a string variable not a numeric variable. Therefore your if() would be more like...
if (substr($HTTP_USER_AGENT,3,4)=="MSIE 6.0")
{
header("302: Redirection");
header("Location:http://www.alocation.com");
}
elseif (substr($HTTP_USER_AGENT,3,4)=="MSIE 5.0" or substr($HTTP_USER_AGENT,3,4)=="MSIE 4.0")
{
echo "Sorry, you need to upgrade";
}
thats they way I would go about it... unless a more experience PHP user would know a better way... 😃
in any case i am at work and will check more later when I get home.