Your Ad Here

 Navigation

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

 Sponsors
 Links
software directory
wwwstores
programmershelp
 Downloads
 Misc

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


Browser Detection

This example shows some simple browser detection

<?php
$msie = eregi("MSIE" , $HTTP_USER_AGENT);
//look for MSIE in the HTTP_USER_AGENT
if ($msie == true)
{
echo ("You are using Internet explorer");
//header("location: internetexplorerpage.htm");
exit;
}
//now we will look for mozilla and of course if its not internet explorer
//we will assume its netscape navigator
$ns = eregi("mozilla" , $HTTP_USER_AGENT);
if ($ns == true)
{
echo ("You are using Netscape");
//header("location: netscapepage.htm");
exit;
}
//this is for all other browsers
else
{
echo ("You are not using Netscape or Internet explorer");
//header("location: otherpage.htm");
exit;
}
?>






Books
 Sponsors
 Random Code
Directory file viewer improved version(file system)

Yahoo news(xml)

Server info(functions)

 Random Article
  Network

Programming resources
Tutorials directory
General bid directory
sell software, make money
Find me wholesalers
Find me dropshippers
Free recipes online/a>
UK products and price comparison
Anime videos
Free lyrics search
free stuff
UK stores
Gambling directory
Sexy free wallpapers
Hosting resources
ASP site
Golf resources
iPod resources
Coupons and deals
Baby names
Domain names
Dating site
Scripts directory
Maxi directory
bigarticle : free articles
dawgwitch search
List of directories






beginners PHP Copyright © 2004 onwards by beginnersPHP.