This class (named Browscap) is a great alternative to PHP's native get_broswer function which requires manual regular updating of a browser.ini definitions file. Instead, Browscap intermittently imports the latest browser definitions from browserproject.com so that your scripts are always up to speed with the latest browser information.
Instructions and download below...
I've made a few edits to Jonathan's great class to make it a bit easier to implement. All you need to do is download the files below and add these two lines to your PHP script:
require("path/to/checkbroswer.php");
$browserInfo=checkbrowser(); //returns array of info on the browser (print_r($browserInfo) to view)
//alternatively, if you dont need all that array data:
$browser=checkbrowser('Browser'); //returns Case sensitive browser name (Firefox,Chrome,IE,etc)
$version=checkbrowser('Version'); //returns browser's version number (3.6, etc)
For details on what is returned in the array check out the Browscap website
» Download the modified Browscap file
NOTE: This is quite slow for one visitor every 10 days (which I can live with!) as it has to import the definitions file. Otherwise all data is cached and it should be nice and fast.
12 comments:
canada goose
coach factory outlet
coach outlet
ray ban sunglasses
fit flops
canada goose jackets
kate spade outlet
cheap oakleys
birkenstock sandals
birkenstocks
20161228caiyan]
\
ugg canada
discount oakley sunglasses
moncler outlet
coach outlet online
canada goose
canada goose outlet
cheap ray ban sunglasses
longchamp outlet
salvatore ferragamo shoes
coach outlet
adidas shoes
timberland boots
montblanc
converse shoes
nike mercurial
longchamp outlet
fendi
converse
coach outlet
lebron 11
longchamp bags
2018.6.28LINYING
michael kors outlet
rolex
mont blanc
armani handbags
goyard handbags
oakley sunglasses
lacoste jeans
ugg outlet
oakley sunglasses
nike store
2018.10.16chenlixiang
I am sure you see the trend here... Commercial Mortgage Financing can be used in practically any industry for any kind of commercial property. Speak with your Business Finance Broker when you are ready to invest in a Commercial Real estate opportunity. www.financetypes.us
One of the biggest competitions of today is staying fit. It seems like people nowadays want to lose weight instantly as if there is no tomorrow or it is as if it is a passport for the general population. Losing weight and staying fit is never easy. www.bestadventuretravel.us
I am certain you begin to see the trend right here... Commercial Home loan Financing may be used in virtually any business for any type of commercial home. Speak together with your Business Finance Broker when you're ready to purchase a Commercial Property opportunity. www.mybusinessplan.us
Health fitness tips also recommend that vices should be stopped. Smoking predisposes one to vascular conditions such as arteriosclerosis and heart diseases. Alcohol consumption need not be eliminated but should be limited to 30 jiggers a day only. Alcohol still has health benefits such as vasodilation. These are just some of what Health fitness tips recommend www.healthyactivities.us
Insurance can be synonymous to a lot people expressing risks involving losses expected coming from a supposed car accident. Here, the price of your losses are going to be borne by the many insurers. www.insuranceguider.us
Discomfort heard this argument intended for spending far more now with quality just to save money in the future. But why not consider the impression your purchase has on the earth, shouldn't shopping ethically participate in the talk too? www.servicesexpert.us
Health fitness ideas also suggest that vices ought to be stopped. Smoking predisposes someone to vascular conditions for example arteriosclerosis as well as heart illnesses. Alcohol consumption do not need to be removed but ought to be limited in order to 30 jiggers each day only. Alcohol nevertheless has many benefits such because vasodilation. These are are just some of what Health fitness ideas recommend www.healthimprove.us
Most of us have heard the actual argument with regard to spending much more now upon quality in order to save money later on. But how about the effect your purchase is wearing the globe, shouldn't shopping ethically participate the dialogue too? www.newsvillage.us
Post a Comment