Navigation :
HomeSource code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links
Site Sponsors :
Bookmark :
Links :
domain namessoftware directory
dropshippers
Downloads :
Misc :
Webmaster ResourcesOnly 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 :
Bubblesort routine(functions)find a string in another(string)
Random daily background colour(randomizing)
Random Article :
PHP Sessions / CookiesNetwork:
Programming resourcesTutorials directory
Clickbank mall
sell software
Free auctions, low cost stores
UK products
US products
Gambling directory
Sexy free wallpapers
Hosting resources
ASP site
DVD site
Domain names
Dating site
Software directory
Maxi directory
bigarticle : free articles
Del.icio.us
Digg
Furl
Newsvine
Netscape
Reddit
StumbleUpon
Technorati
Squidoo
Windows Live
Yahoo MyWeb
Ask
Google