09-19-2008
I use Firefox but only because the competition is worse. I have tried Epiphany and Konqueror but always returned to Mozilla / Firefox because they somehow felt too constrained. But I curse the memory footprint and instability of Firefox every day. (FF2 was more stable for me, but FF3 is nicer in terms of performance; still, lots of room for improvement.)
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there all
I am looking for both a web browser as well as a web server (Ie. Netscape Fasttrack) that will run on HPUX 10.
If you know where I can get these free via FTP, please contact me as soon as possible!!
Thanks,
Mark (1 Reply)
Discussion started by: mleathers
1 Replies
2. Linux
hi experts,
i'm running red hat linux, consider there's no visual interface, no X server...
actually there is one but it's written in Python!
what i need is to intall a decent web browser on it! is it possible? and i only have abt 100 MBs of free disk space... (1 Reply)
Discussion started by: elzalem
1 Replies
3. Solaris
On clicking on my WEB BROWSER . no window is appearing , only a dialog box appearing with named "ALERT" any nothing else.
What is browser package name , which is by default in Solaris 10 (3 Replies)
Discussion started by: kush singh
3 Replies
4. What is on Your Mind?
Hello,
Have you all noticed that the Dillo web browser always reports bugs just about on every web page. Richard Stallman's Personal Page
However some, but not many have none.
cheers (2 Replies)
Discussion started by: nigelc
2 Replies
5. UNIX for Dummies Questions & Answers
To practice SQL, there is a very good website called www.sqlfiddle.com
no need of installing any external software, it can do almost anything in PL/SQL and Oracle.
In a similar manner, is there a good website where i can practice Unix commands on a broswer?
I mean, it should be able to execute... (1 Reply)
Discussion started by: Manjunath B
1 Replies
6. Programming
Hi,
I am trying to multiple urls in multiple tabs within a browser window.
I am using webbrowser module in python:
My code:
import webbrowser
li =
for url in li:
webbrowser.open_new_tab(url)
This code works fine, if the browser is already opened.
If the browser is not started... (5 Replies)
Discussion started by: pandeesh
5 Replies
7. AIX
Old AS/400 guy here now administering an AIX system. We have an application that runs on 3151 emulator. Is it possible via an program or other to run a 3151 session in a web browser?
I would like to have some of my user be able to work from home without having to install an emulation program, and... (1 Reply)
Discussion started by: jeveretts
1 Replies
8. What is on Your Mind?
Where do you go to participate in technical discussions besides UNIX.COM and why?
Personally, I do not really participate in other forums and discussion boards, but I do ask questions from time to time on Stack sites. The problem I have with Stack is that my questions are never answered on any... (30 Replies)
Discussion started by: Neo
30 Replies
LEARN ABOUT PHP
get_browser
GET_BROWSER(3) 1 GET_BROWSER(3)
get_browser - Tells what the user's browser is capable of
SYNOPSIS
mixed get_browser ([string $user_agent], [bool $return_array = false])
DESCRIPTION
Attempts to determine the capabilities of the user's browser, by looking up the browser's information in the browscap.ini file.
PARAMETERS
o $user_agent
- The User Agent to be analyzed. By default, the value of HTTP User-Agent header is used; however, you can alter this (i.e., look
up another browser's info) by passing this parameter. You can bypass this parameter with a NULL value.
o $return_array
- If set to TRUE, this function will return an array instead of an object.
RETURN VALUES
The information is returned in an object or an array which will contain various data elements representing, for instance, the browser's
major and minor version numbers and ID string; TRUE/ FALSE values for features such as frames, JavaScript, and cookies; and so forth.
The cookies value simply means that the browser itself is capable of accepting cookies and does not mean the user has enabled the browser
to accept cookies or not. The only way to test if cookies are accepted is to set one with setcookie(3), reload, and check for the value.
CHANGELOG
+--------+--------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+--------------------------------------------------+
| 4.3.2 | |
| | |
| | The optional parameter $return_array was added. |
| | |
+--------+--------------------------------------------------+
EXAMPLES
Example #1
Listing all information about the users browser
<?php
echo $_SERVER['HTTP_USER_AGENT'] . "
";
$browser = get_browser(null, true);
print_r($browser);
?>
The above example will output something similar to:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
Array
(
[browser_name_regex] => ^mozilla/5.0 (windows; .; windows nt 5.1; .*rv:.*) gecko/.* firefox/0.9.*$
[browser_name_pattern] => Mozilla/5.0 (Windows; ?; Windows NT 5.1; *rv:*) Gecko/* Firefox/0.9*
[parent] => Firefox 0.9
[platform] => WinXP
[browser] => Firefox
[version] => 0.9
[majorver] => 0
[minorver] => 9
[cssversion] => 2
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[vbscript] =>
[javascript] => 1
[javaapplets] => 1
[activexcontrols] =>
[cdf] =>
[aol] =>
[beta] => 1
[win16] =>
[crawler] =>
[stripper] =>
[wap] =>
[netclr] =>
)
NOTES
Note
In order for this to work, your browscap configuration setting in php.ini must point to the correct location of the browscap.ini
file on your system.
browscap.ini is not bundled with PHP, but you may find an up-to-date php_browscap.ini file here.
While browscap.ini contains information on many browsers, it relies on user updates to keep the database current. The format of the
file is fairly self-explanatory.
PHP Documentation Group GET_BROWSER(3)