Di apici usa questi ', quindi
Codice PHP:
$useragent $_SERVER['HTTP_USER_AGENT']; 
if(
preg_match('/MSIE 6.0/i',$u_agent) )
{
    
header("Location: http://");
}
elseif (
preg_match('/MSIE 7.0/i',$u_agent) )
{
    
header("Location: http://");
}
elseif (
preg_match('/MSIE 8.0/i',$u_agent) )
{
    
header("Location: http://");

Per il libro non ne ho idea, a parte un tascabile non ne ho mai letti.
Chiedi all'utente giannino1995, in una sua discussione ne sono stati citati un bel po'.