This script restricts access, you have to use Netscape otherwise it will display a message about downloading a new browser.
- Code: Select all
<?php
// Recommended browser:
$bname = 'Netscape'; $bdownload = 'http://browser.netscape.com/ns8/';
// Script that gets browser and displays messager
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Netscape') )
{
$message = "Your browser is compatiable with our site.";
}
else
{
$message = "If the site does not display correctly it is not compatable with your browser, consider
downloading $bname at this url: $bdownload";
}
echo "$message";
?>