Navigation :
HomeSource code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links
Site Sponsors :
- Load Cells
- Best MySQL & PHP Webhosting + save 50%
- κατασκευή ιστοσελίδων
Bookmark :
Links :
software directorygambling sites
domain names
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 :
count characters in a sentence(string)Display rows from only a certain category of a MySQL database(database)
Degrees / Radians conversions(math)
Random Article :
Autoresponders With PHPPHP User Login Authentication
Network:
Programming resourcesTutorials directory
Hosting resources
ASP site
Domain names
Progged
Maxi directory
bigarticle : free articles
A Code
Code N Tutorials
Del.icio.us
Digg
Furl
Newsvine
Netscape
Reddit
StumbleUpon
Technorati
Squidoo
Windows Live
Yahoo MyWeb
Ask
Google