php_test
[insert_php]
echo $_SERVER[‘HTTP_USER_AGENT’];
if (strpos($_SERVER[‘HTTP_USER_AGENT’], ‘Mozilla’) !== FALSE) {
echo ‘You are using Mozilla.
‘;
}
[/insert_php]
[insert_php]
if (strpos($_SERVER[‘HTTP_USER_AGENT’], ‘MSIE’) !== FALSE) {
[/insert_php]
strpos() must have returned non-false
You are using Internet Explorer
[insert_php]
} else {
[/insert_php]
strpos() must have returned false
You are not using Internet Explorer
[insert_php]
}
[/insert_php]