What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » formatting web browsers

formatting web browsers
Author: Message:
user35870
Disabled Account


Posts: 858
Joined: Aug 2004
Status: Away
RE: formatting web browsers
I'm not sure if this is the best way to do it or is what you mean, but here go's:

code:
<?php
$browser = $_SERVER['HTTP_USER_AGENT'];

if (preg_match("/firefox/i", "$browser")) {
$result = "Mozilla Firefox";
}
elseif (preg_match("/ie/i", "$browser")) {
$result = "Internet Explorer";
}
elseif (preg_match("/opera/i", "$browser")) {
$result = "Opera";
}
else {
$result = "Unknown";
}
echo "<strong>$result</strong>";
?>


(note: I've only done some examples, you can expand it for others such as Netscape if you want.)

This post was edited on 05-08-2007 at 08:42 PM by user35870.
05-08-2007 08:33 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
formatting web browsers - by Nathan on 05-08-2007 at 06:11 PM
RE: formatting web browsers - by Baggins on 05-08-2007 at 07:05 PM
RE: formatting web browsers - by Nathan on 05-08-2007 at 08:32 PM
RE: formatting web browsers - by absorbation on 05-08-2007 at 08:33 PM
RE: formatting web browsers - by user35870 on 05-08-2007 at 08:33 PM
RE: formatting web browsers - by Nathan on 05-08-2007 at 08:34 PM
RE: formatting web browsers - by absorbation on 05-08-2007 at 08:38 PM
RE: formatting web browsers - by FineWolf on 05-08-2007 at 10:19 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On