Navigation :

Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




Site Sponsors :

Bookmark :

Links :

programmershelp
golfing products
low cost magazines

Downloads :

Misc :

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!




Mozilla or Internet explorer

Mozilla or Internet explorer

<?php
$useragent = getenv("HTTP_USER_AGENT");

if (preg_match("/MSIE/i", "$useragent"))
{
$result = "Internet Explorer.";
}

else if (preg_match("/Mozilla/i", "$useragent"))
{
$result = "Mozilla";
}

else
{
$result = "You are using $useragent";
}
?>
<HTML>
<HEAD>
<TITLE>Browser Match Results</TITLE>
</HEAD>
<BODY>
<?php echo "<P>$result</P>"; ?>
</BODY>
</HTML>