forked from smxi/php-browser-detection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
52 lines (33 loc) · 1.79 KB
/
Copy pathREADME.txt
File metadata and controls
52 lines (33 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
SCRIPT / UTILITY DESCRIPTIONS
These tools/utilities are available at github and on the listed primary pages.
Version Control: https://github.com/smxi/php-browser-detection
============================================================================
PHP Browser Detection
filename: browser_detection.inc
Primary home page: http://techpatterns.com/downloads/php_browser_detection.php
Support forums: http://techpatterns.com/forums/forum-11.html
A general php utility for browser / OS / Mobile / Tablet detection.
Very robust and heavily tested in production environments. Not heavy weight
like other php browser detectors, without sacrificing accuracy.
This is very fast, and very efficient, utility. In continuous use and
development for almost 15 years.
Returns either string or array data. Full explanation of output options in top
comment header of script.
There are a lot of browser detection scripts out there, some absurdly bloated
and inefficient (all we're doing is parsing the useragent string the server
returns, after all), others too simple, and prone to errors in detection.
============================================================================
PHP Language Detection
filename: language_detection.inc
Primary home page:
http://techpatterns.com/downloads/php_language_detection.php
A lightweight tool to assign browser languages. Based on the $_SERVER["HTTP_ACCEPT_LANGUAGE"]
header.
Returns an array of the following 4 item array for each language the os supports:
1. full language abbreviation, like en-ca
2. primary language, like en
3. full language string, like English (Canada)
4. primary language string, like English
Easy to use, easy to implement, works well in conjunction with the browser
detection utility.
============================================================================