0 ; $i-- ) { // is numeric makes sure that the whole substring is a number if ( is_numeric( substr( $browser_user_agent, $start_pos, $i ) ) ) { $browser_number = substr( $browser_user_agent, $start_pos, $i ); break; } } return $browser_number; } // include('browser_detection.php'); $a_browser_data = browser_detection('full'); if ( $a_browser_data[0] !== 'ie' ) { header("Location: /private2/pricelistv6.html"); } else // if it is msie, that is { if ( $a_browser_data[1] > 6 ) { header("Location: /private2/pricelistv6.html"); } else { header("Location: /private2/pricelist.html"); } } ?> Pricing